Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Relative time interval. More...
#include <tick_count.h>
Public Member Functions | |
interval_t () | |
Construct a time interval representing zero time duration. More... | |
interval_t (double sec) | |
Construct a time interval representing sec seconds time duration. More... | |
double | seconds () const |
Return the length of a time interval in seconds. More... | |
interval_t & | operator+= (const interval_t &i) |
Accumulation operator. More... | |
interval_t & | operator-= (const interval_t &i) |
Subtraction operator. More... | |
Private Member Functions | |
interval_t (long long value_) | |
Static Private Member Functions | |
static long long | ticks_per_second () |
Private Attributes | |
long long | value |
Friends | |
class | tbb::tick_count |
interval_t | operator- (const tick_count &t1, const tick_count &t0) |
Extract the intervals from the tick_counts and subtract them. More... | |
interval_t | operator+ (const interval_t &i, const interval_t &j) |
Add two intervals. More... | |
interval_t | operator- (const interval_t &i, const interval_t &j) |
Subtract two intervals. More... | |
Relative time interval.
Definition at line 37 of file tick_count.h.
|
inlineexplicitprivate |
Definition at line 39 of file tick_count.h.
|
inline |
Construct a time interval representing zero time duration.
Definition at line 42 of file tick_count.h.
|
inlineexplicit |
Construct a time interval representing sec seconds time duration.
Definition at line 122 of file tick_count.h.
References ticks_per_second(), and value.
|
inline |
|
inline |
|
inline |
Return the length of a time interval in seconds.
Definition at line 130 of file tick_count.h.
References tbb::tick_count::resolution(), and value.
Referenced by tbb::internal::thread_sleep_v3().
|
inlinestaticprivate |
Definition at line 71 of file tick_count.h.
References __TBB_ASSERT_EX.
Referenced by interval_t(), and tbb::tick_count::resolution().
|
friend |
Add two intervals.
Definition at line 56 of file tick_count.h.
|
friend |
Extract the intervals from the tick_counts and subtract them.
Definition at line 126 of file tick_count.h.
|
friend |
Subtract two intervals.
Definition at line 61 of file tick_count.h.
|
friend |
Definition at line 50 of file tick_count.h.
|
private |
Definition at line 38 of file tick_count.h.
Referenced by interval_t(), operator+=(), and operator-=().