Urho3D
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
Urho3D::HiresTimer Class Reference

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

#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Core/Timer.h>

Public Member Functions

 HiresTimer ()
 Construct. Get the starting high-resolution clock value.
 
long long GetUSec (bool reset)
 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: