A class for time measurements.
More...
#include <clock.h>
A class for time measurements.
Definition at line 31 of file clock.h.
lunchbox::Clock::Clock |
( |
| ) |
|
Construct a new clock.
- Version
- 1.0
lunchbox::Clock::Clock |
( |
const Clock & |
from | ) |
|
Copy-construct a new clock with the same start time .
- Version
- 1.0
lunchbox::Clock::~Clock |
( |
| ) |
|
Destroy the clock.
- Version
- 1.0
int64_t lunchbox::Clock::getTime64 |
( |
| ) |
const |
double lunchbox::Clock::getTimed |
( |
| ) |
const |
- Returns
- the elapsed time in milliseconds since the last clock reset.
- Version
- 1.0
float lunchbox::Clock::getTimef |
( |
| ) |
const |
- Returns
- the elapsed time in milliseconds since the last clock reset.
- Version
- 1.0
Clock& lunchbox::Clock::operator= |
( |
const Clock & |
ref | ) |
|
Assignment operator.
- Version
- 1.7.2
void lunchbox::Clock::reset |
( |
| ) |
|
Reset the base time of the clock to the current time.
- Version
- 1.0
float lunchbox::Clock::resetTimef |
( |
| ) |
|
- Returns
- the elapsed time in milliseconds since the last clock reset and atomically reset the clock.
- Version
- 1.0
void lunchbox::Clock::set |
( |
const int64_t |
time | ) |
|
Set the current time of the clock.
- Version
- 1.0
The documentation for this class was generated from the following file: