Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Go to the documentation of this file.
17 #ifndef __TBB_tick_count_H
18 #define __TBB_tick_count_H
74 int rval = QueryPerformanceFrequency(&qpfreq);
76 return static_cast<long long>(qpfreq.QuadPart);
78 return static_cast<long long>(1E9);
80 return static_cast<long long>(1E6);
105 int rval = QueryPerformanceCounter(&qpcnt);
110 int status = clock_gettime( CLOCK_REALTIME, &ts );
112 result.
my_count =
static_cast<long long>(1000000000UL)*
static_cast<long long>(ts.tv_sec) +
static_cast<long long>(ts.tv_nsec);
115 int status = gettimeofday(&tv, NULL);
117 result.
my_count =
static_cast<long long>(1000000)*
static_cast<long long>(tv.tv_sec) +
static_cast<long long>(tv.tv_usec);
static double resolution()
Return the resolution of the clock in seconds per tick.
friend interval_t operator+(const interval_t &i, const interval_t &j)
Add two intervals.
interval_t & operator+=(const interval_t &i)
Accumulation operator.
interval_t()
Construct a time interval representing zero time duration.
friend interval_t operator-(const tick_count &t1, const tick_count &t0)
Subtract two timestamps to get the time interval between.
interval_t(long long value_)
static tick_count now()
Return current time.
tick_count()
Construct an absolute timestamp initialized to zero.
double seconds() const
Return the length of a time interval in seconds.
interval_t & operator-=(const interval_t &i)
Subtraction operator.
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long value
friend interval_t operator-(const interval_t &i, const interval_t &j)
Subtract two intervals.
friend interval_t operator-(const tick_count &t1, const tick_count &t0)
Extract the intervals from the tick_counts and subtract them.
#define __TBB_ASSERT_EX(predicate, comment)
"Extended" version is useful to suppress warnings if a variable is only used with an assert
static long long ticks_per_second()
Copyright © 2005-2020 Intel Corporation. All Rights Reserved.
Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
registered trademarks or trademarks of Intel Corporation or its
subsidiaries in the United States and other countries.
* Other names and brands may be claimed as the property of others.