#include <TTimer.hpp>
|
| using | Time = std::chrono::time_point< std::chrono::steady_clock > |
| |
Definition at line 12 of file TTimer.hpp.
◆ Time
◆ Unit
| Enumerator |
|---|
| Miliseconds | |
| Microseconds | |
| Nanoseconds | |
Definition at line 14 of file TTimer.hpp.
enum tklb::SectionTimer::Unit mUnit
◆ SectionTimer()
| tklb::SectionTimer::SectionTimer |
( |
const char * |
message = "", |
|
|
Unit |
unit = Microseconds, |
|
|
size_t |
divider = 1 |
|
) |
| |
|
inline |
◆ ~SectionTimer()
| tklb::SectionTimer::~SectionTimer |
( |
| ) |
|
|
inline |
Definition at line 54 of file TTimer.hpp.
static size_t getMsSince(const Time &t)
static size_t getUsSince(const Time &t)
static size_t getNsSince(const Time &t)
◆ current()
| static Time tklb::SectionTimer::current |
( |
| ) |
|
|
inlinestatic |
Definition at line 31 of file TTimer.hpp.
32 return std::chrono::steady_clock::now();
◆ getMsSince()
| static size_t tklb::SectionTimer::getMsSince |
( |
const Time & |
t | ) |
|
|
inlinestatic |
Definition at line 35 of file TTimer.hpp.
36 return std::chrono::duration_cast<std::chrono::milliseconds>(
current() - t).count();
◆ getNsSince()
| static size_t tklb::SectionTimer::getNsSince |
( |
const Time & |
t | ) |
|
|
inlinestatic |
Definition at line 43 of file TTimer.hpp.
44 return std::chrono::duration_cast<std::chrono::nanoseconds>(
current() - t).count();
◆ getUsSince()
| static size_t tklb::SectionTimer::getUsSince |
( |
const Time & |
t | ) |
|
|
inlinestatic |
Definition at line 39 of file TTimer.hpp.
40 return std::chrono::duration_cast<std::chrono::microseconds>(
current() - t).count();
◆ mDivider
| size_t tklb::SectionTimer::mDivider |
|
private |
◆ mMessage
| const char* tklb::SectionTimer::mMessage |
|
private |
◆ mStart
| Time tklb::SectionTimer::mStart |
|
private |
◆ mUnit
The documentation for this class was generated from the following file: