Base Framework
|
#include <base/Timer.h>
Inherits Object.
Classes | |
class | ElapsedTime |
Elapsed time conversion. More... | |
struct | Time |
struct | XTime |
Public Member Functions | |
Timer () noexcept | |
void | start () noexcept |
void | stop () noexcept |
uint64 | getStartTime () const noexcept |
uint64 | getStopTime () const noexcept |
uint64 | getMicroseconds () const noexcept |
uint64 | getLiveMicroseconds () const noexcept |
Static Public Member Functions | |
static uint64 | toTimeNS (XTime time) noexcept |
static uint64 | toTimeUS (XTime time) noexcept |
static XTime | toXTimeNS (uint64 nanoseconds) noexcept |
static XTime | toXTimeUS (uint64 microseconds) noexcept |
static uint64 | getMeasureFrequency () noexcept |
static uint64 | getRealNow () noexcept |
static uint64 | getNowNS () noexcept |
static uint64 | getNow () noexcept |
Related Functions | |
(Note that these are not member functions.) | |
FormatOutputStream & | operator<< (FormatOutputStream &stream, const Timer &value) |
|
inlinenoexcept |
Initializes the timer. The timer is started.
|
inlinenoexcept |
Returns the number of elapsed microseconds since start.
|
staticnoexcept |
Measure frequency (ticks per second).
|
inlinenoexcept |
Returns the number of elapsed microseconds between start and stop times.
|
staticnoexcept |
Returns the current time in microseconds.
|
staticnoexcept |
Returns the current time in nanoseconds.
|
staticnoexcept |
Returns the current clock time in microseconds. Time can go backwards.
|
inlinenoexcept |
Returns the start time in microseconds.
|
inlinenoexcept |
Returns the stop time in microseconds.
|
inlinenoexcept |
Starts the timer.
|
inlinenoexcept |
Stops the timer.
|
staticnoexcept |
Converts XTime to normal 64-bit time (nanoseconds).
|
staticnoexcept |
Converts XTime to normal 64-bit time (microseconds).
|
staticnoexcept |
Returns XTime from microseconds.
|
related |
Writes a string representation of the elapsed time of the specified timer.