Chi-Tech
|
#include <chi_timer.h>
Public Member Functions | |
Timer () noexcept | |
void | Reset () |
double | GetTime () const |
std::string | GetTimeString () const |
Static Public Member Functions | |
static std::string | GetLocalDateTimeString () |
Private Attributes | |
std::chrono::steady_clock::time_point | start_time_ |
Timer object.
Definition at line 12 of file chi_timer.h.
|
noexcept |
Default constructor.
Definition at line 9 of file chi_timer.cc.
|
static |
Obtains a string in the format YYYY-MM-DD hh:mm:ss
Definition at line 55 of file chi_timer.cc.
double chi::Timer::GetTime | ( | ) | const |
Gets the current timer value in milliseconds.
Definition at line 23 of file chi_timer.cc.
std::string chi::Timer::GetTimeString | ( | ) | const |
Obtains a string in the format of hh:mm::ss.
Definition at line 38 of file chi_timer.cc.
void chi::Timer::Reset | ( | ) |
Resets the timer to zero.
Definition at line 16 of file chi_timer.cc.
|
private |
Definition at line 15 of file chi_timer.h.