Rebel Fork Framework
Urho3D::HiresTimer Class Reference

High-resolution operating system timer used in profiling. More...

#include <Urho3D/Core/Timer.h>

Public Member Functions

 HiresTimer ()
 Construct. Get the starting high-resolution clock value.
 
long long GetUSec (bool reset=false)
 Return elapsed microseconds and optionally reset.
 
void Reset ()
 Reset the timer.
 

Static Public Member Functions

static bool IsSupported ()
 Return if high-resolution timer is supported.
 
static long long GetFrequency ()
 Return high-resolution timer frequency if supported.
 

Private Attributes

long long startTime_ {}
 Starting clock value in CPU ticks.
 

Static Private Attributes

static bool supported
 High-resolution timer support flag.
 
static long long frequency
 High-resolution timer frequency.
 

Friends

class Time
 

Detailed Description

High-resolution operating system timer used in profiling.


The documentation for this class was generated from the following files: