projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4faf445
)
Add PBD::Timing::elapsed_msecs() as convenience API
author
Tim Mayberry
<mojofunk@gmail.com>
Sun, 25 Sep 2016 04:32:14 +0000
(14:32 +1000)
committer
Tim Mayberry
<mojofunk@gmail.com>
Sun, 9 Oct 2016 22:45:33 +0000
(08:45 +1000)
libs/pbd/pbd/timing.h
patch
|
blob
|
history
diff --git
a/libs/pbd/pbd/timing.h
b/libs/pbd/pbd/timing.h
index 2ba9cab8ff4ddba7503298f76cc4344e1ac28da9..9c93165b3a4a026a054d8ec341bd73e686ce16ef 100644
(file)
--- a/
libs/pbd/pbd/timing.h
+++ b/
libs/pbd/pbd/timing.h
@@
-93,11
+93,16
@@
public:
return elapsed;
}
- /// Elapsed time in microseconds
+ ///
@return
Elapsed time in microseconds
uint64_t elapsed () const {
return m_last_val - m_start_val;
}
+ /// @return Elapsed time in milliseconds
+ uint64_t elapsed_msecs () const {
+ return elapsed () / 1000;
+ }
+
private:
uint64_t m_start_val;