13
0

Add PBD::Timing::elapsed_msecs() as convenience API

This commit is contained in:
Tim Mayberry 2016-09-25 14:32:14 +10:00
parent 4faf44588f
commit 116dace033

View File

@ -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;