|
| std::string | name |
| |
| unsigned int | secs |
| |
| bool | started {false} |
| |
| unsigned int | count {0} |
| |
| struct timespec | t = {0, 0} |
| |
◆ BaseCounter()
| BaseCounter::BaseCounter |
( |
const std::string & |
name, |
|
|
unsigned int |
secs |
|
) |
| |
◆ operator()()
| bool BaseCounter::operator() |
( |
| ) |
|
112 if(!
started && 0 == clock_gettime(CLOCK_REALTIME, &
t))
120 struct timespec now = {0, 0};
121 if(0 == clock_gettime(CLOCK_REALTIME, &now))
123 if(now.tv_sec >
t.tv_sec +
secs)
126 double elapsed = now.tv_nsec -
t.tv_nsec * 1e-9;
127 elapsed += now.tv_sec -
t.tv_sec;
Referenced by InvalidatingCounter::operator()().
◆ columnWidth
| unsigned int BaseCounter::columnWidth = 0 |
|
staticprivate |
◆ count
| unsigned int BaseCounter::count {0} |
|
private |
◆ name
| std::string BaseCounter::name |
|
private |
◆ secs
| unsigned int BaseCounter::secs |
|
private |
◆ started
| bool BaseCounter::started {false} |
|
private |
| struct timespec BaseCounter::t = {0, 0} |
|
private |
The documentation for this class was generated from the following file: