Provides a simple timer.
More...
#include <timer.h>
|
void | start () |
| Starts the timer.
|
double | get_time_s () |
| Returns the time in seconds since the timer was started.
|
double | get_time_ms () |
| Returns the time in milliseconds since the timer was started.
|
Provides a simple timer.
Definition at line 12 of file timer.h.
◆ Timer()
◆ ~Timer()
◆ get_time_ms()
double Timer::get_time_ms |
( |
| ) |
|
Returns the time in milliseconds since the timer was started.
- Returns
- Time in milliseconds that has passed since start was called
Definition at line 24 of file timer.cpp.
◆ get_time_s()
double Timer::get_time_s |
( |
| ) |
|
Returns the time in seconds since the timer was started.
- Returns
- Time in seconds that has passed since start was called
Definition at line 16 of file timer.cpp.
◆ start()
Starts the timer.
Definition at line 12 of file timer.cpp.
The documentation for this class was generated from the following files:
- /home/fstdb/proj/sgltk_example/sgltk/src/timer.h
- /home/fstdb/proj/sgltk_example/sgltk/src/timer.cpp