mirror of https://github.com/ARMmbed/mbed-os.git
duration added valueInMs
parent
c9dcef17dd
commit
cd5dabf464
|
@ -151,6 +151,15 @@ struct Duration {
|
||||||
return 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.
|
* The time base.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue