Base Framework
|
Elapsed time conversion. More...
#include <base/Timer.h>
Public Member Functions | |
ElapsedTime () noexcept | |
ElapsedTime (uint64 _nanoseconds) noexcept | |
void | roundToMicrosecond () noexcept |
void | roundToMillisecond () noexcept |
void | roundToSecond () noexcept |
void | roundToMinute () noexcept |
void | roundToHour () noexcept |
void | roundToDay () noexcept |
uint64 | getNanoseconds () const noexcept |
void | setNanoseconds (uint64 nanoseconds) noexcept |
unsigned int | getNNanoseconds () const noexcept |
unsigned int | getNMicroseconds () const noexcept |
unsigned int | getNMilliseconds () const noexcept |
unsigned int | getNSeconds () const noexcept |
uint64 | getSeconds () const noexcept |
unsigned int | getNMinutes () const noexcept |
unsigned int | getMinutes () const noexcept |
unsigned int | getNHours () const noexcept |
unsigned int | getHours () const noexcept |
unsigned int | getDays () const noexcept |
Elapsed time conversion.
This class provides methods for converting nanoseconds into other time units.
|
inlinenoexcept |
Initializes time as 0.
|
inlinenoexcept |
Initializes the time.
|
inlinenoexcept |
Returns the time in days.
|
inlinenoexcept |
Returns the time in hours.
|
inlinenoexcept |
Returns the time in minutes.
|
inlinenoexcept |
Returns the time in nanoseconds.
|
inlinenoexcept |
Returns the time in normalized hours.
|
inlinenoexcept |
Returns the time in normalized microseconds.
|
inlinenoexcept |
Returns the time in normalized milliseconds.
|
inlinenoexcept |
Returns the time in normalized minutes.
|
inlinenoexcept |
Returns the time in normalized nanoseconds.
|
inlinenoexcept |
Returns the time in normalized seconds.
|
inlinenoexcept |
Returns the time in seconds.
|
inlinenoexcept |
Round to nearest day. Use this after setting the time and before converting the time.
|
inlinenoexcept |
Round to nearest hour. Use this after setting the time and before converting the time.
|
inlinenoexcept |
Round to nearest microsecond. Use this after setting the time and before converting the time.
|
inlinenoexcept |
Round to nearest millisecond. Use this after setting the time and before converting the time.
|
inlinenoexcept |
Round to nearest minute. Use this after setting the time and before converting the time.
|
inlinenoexcept |
Round to nearest second. Use this after setting the time and before converting the time.
|
inlinenoexcept |
Sets the time in nanoseconds.