◆ WaitForAsyncOp() [1/3]
| WaitForAsyncOp::WaitForAsyncOp |
( |
std::string |
name | ) |
|
|
explicit |
48 :
name(std::move(name_))
◆ WaitForAsyncOp() [2/3]
◆ WaitForAsyncOp() [3/3]
62 ,
t(std::move(other.
t))
◆ ~WaitForAsyncOp()
| WaitForAsyncOp::~WaitForAsyncOp |
( |
| ) |
|
|
default |
◆ operator()()
| bool WaitForAsyncOp::operator() |
( |
| ) |
|
68 if(!
started && 0 == clock_gettime(CLOCK_REALTIME, &
t))
74 std::cout <<
"Waiting for " <<
name << std::endl;
79 struct timespec now = {0, 0};
80 if(0 == clock_gettime(CLOCK_REALTIME, &now))
82 const double duration = now.tv_sec -
t.tv_sec + (now.tv_nsec -
t.tv_nsec) / 1E9;
84 std::cout <<
name <<
" took " << duration <<
"s" << std::endl;
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ name
| std::string WaitForAsyncOp::name |
|
private |
◆ started
| bool WaitForAsyncOp::started {false} |
|
private |
| struct timespec WaitForAsyncOp::t = {0, 0} |
|
private |
The documentation for this class was generated from the following file: