Timer.
Definition at line 57 of file time.h.
#include <time.h>
◆ Timer()
Constructor. Starts the timer.
Definition at line 63 of file time.h.
◆ get()
double humoto::Timer::get |
( |
| ) |
const |
|
inline |
Returns the measured time interval (second).
- Returns
- time interval (second).
Definition at line 96 of file time.h.
◆ start()
void humoto::Timer::start |
( |
| ) |
|
|
inline |
Re/starts the timer.
Definition at line 73 of file time.h.
◆ stop()
double humoto::Timer::stop |
( |
| ) |
|
|
inline |
Stops the timer.
Definition at line 82 of file time.h.
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const Timer & |
timer |
|
) |
| |
|
friend |
Outputs the measured time interval.
- Parameters
-
[in,out] | out | output stream. |
[in] | timer | the timer. |
- Returns
- output stream.
Definition at line 110 of file time.h.
◆ end_time
struct timeval humoto::Timer::end_time |
|
private |
◆ start_time
struct timeval humoto::Timer::start_time |
|
private |
◆ timediff
double humoto::Timer::timediff |
|
private |
The documentation for this class was generated from the following file: