#include <test-helpers.hh>
|
| unsigned int | secs |
| |
| bool | started {false} |
| |
| struct timespec | t = {0, 0} |
| |
◆ Sleeper()
| Sleeper::Sleeper |
( |
unsigned int |
secs | ) |
|
|
explicit |
◆ operator()()
| bool Sleeper::operator() |
( |
| ) |
|
100 if(!
started && 0 == clock_gettime(CLOCK_REALTIME, &
t))
106 struct timespec now = {0, 0};
107 if(0 == clock_gettime(CLOCK_REALTIME, &now))
109 if(now.tv_sec >
t.tv_sec +
secs)
◆ secs
| unsigned int Sleeper::secs |
|
private |
◆ started
| bool Sleeper::started {false} |
|
private |
| struct timespec Sleeper::t = {0, 0} |
|
private |
The documentation for this class was generated from the following files: