duration added valueInMs

pull/8738/head
paul-szczepanek-arm 2018-11-22 14:01:28 +00:00 committed by Vincent Coubard
parent c9dcef17dd
commit cd5dabf464
1 changed files with 9 additions and 0 deletions

View File

@ -151,6 +151,15 @@ struct Duration {
return duration;
}
/**
* Return the duration in milliseconds.
*
* @return The duration in milliseconds.
*/
uint32_t valueInMs() const {
return ((uint32_t)duration * TB) / 1000;
}
/**
* The time base.
*/