summaryrefslogtreecommitdiff
path: root/libs/pbd
diff options
context:
space:
mode:
Diffstat (limited to 'libs/pbd')
-rw-r--r--libs/pbd/pbd/timing.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/pbd/pbd/timing.h b/libs/pbd/pbd/timing.h
index 2ba9cab8ff..9c93165b3a 100644
--- 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;