Class for computing wall-clock times.
class tick_count;
#include "tbb/tick_count.h"
A tick_count is an absolute timestamp. Two tick_count objects may be subtracted to compute a relative time tick_count::interval_t, which can be converted to seconds.
Example
using namespace tbb; void Foo() { tick_count t0 = tick_count::now(); ...action being timed... tick_count t1 = tick_count::now(); printf("time for action = %g seconds\n", (t1-t0).seconds() ); }
namespace tbb { class tick_count { public: class interval_t; static tick_count now(); static double resolution(); }; tick_count::interval_t operator-( const tick_count& t1, const tick_count& t0 ); } // tbb