Lunchbox
1.4.0
|
A class for time measurements. More...
#include <clock.h>
Public Member Functions | |
Clock () | |
Construct a new clock. | |
~Clock () | |
Destroy the clock. | |
void | reset () |
Reset the base time of the clock to the current time. | |
void | set (const int64_t time) |
Set the current time of the clock. | |
float | getTimef () const |
float | resetTimef () |
int64_t | getTime64 () const |
double | getTimed () const |
float | getMilliSecondsf () const |
Returns the millisecond part of the time elapsed since the last reset. |
Construct a new clock.
Destroy the clock.
float lunchbox::Clock::getMilliSecondsf | ( | ) | const |
Returns the millisecond part of the time elapsed since the last reset.
Obviously the returned time overflows once per second.
int64_t lunchbox::Clock::getTime64 | ( | ) | const |
double lunchbox::Clock::getTimed | ( | ) | const |
float lunchbox::Clock::getTimef | ( | ) | const |
void lunchbox::Clock::reset | ( | ) |
Reset the base time of the clock to the current time.
float lunchbox::Clock::resetTimef | ( | ) |
void lunchbox::Clock::set | ( | const int64_t | time | ) |
Set the current time of the clock.