Turi Create  4.0
turi::rdtsc_time Struct Reference

#include <core/system/platform/timer/timer.hpp>

Public Member Functions

 rdtsc_time ()
 
double ms () const
 

Detailed Description

Very rudimentary timer class which allows tracking of fine grained time with extremely low overhead using the RDTSC instruction. Basic usage:

... // do stuff
time.ms(); // returns the number of milliseconds passed.

Also see rdtsc and estimate_ticks_per_second

Definition at line 218 of file timer.hpp.

Constructor & Destructor Documentation

◆ rdtsc_time()

turi::rdtsc_time::rdtsc_time ( )
inline

Constructs an rdtsc_time object and begin tracking the time.

Definition at line 223 of file timer.hpp.

Member Function Documentation

◆ ms()

double turi::rdtsc_time::ms ( ) const
inline

Returns the number of milliseconds passed since the rdtsc_time object was constructed.

Definition at line 229 of file timer.hpp.


The documentation for this struct was generated from the following file: