mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Add PBD::Timing::elapsed_msecs() as convenience API
This commit is contained in:
parent
4faf44588f
commit
116dace033
1 changed files with 6 additions and 1 deletions
|
|
@ -93,11 +93,16 @@ public:
|
||||||
return elapsed;
|
return elapsed;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Elapsed time in microseconds
|
/// @return Elapsed time in microseconds
|
||||||
uint64_t elapsed () const {
|
uint64_t elapsed () const {
|
||||||
return m_last_val - m_start_val;
|
return m_last_val - m_start_val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// @return Elapsed time in milliseconds
|
||||||
|
uint64_t elapsed_msecs () const {
|
||||||
|
return elapsed () / 1000;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
uint64_t m_start_val;
|
uint64_t m_start_val;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue