HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
timing.h File Reference
#include "pxr/pxr.h"
#include "pxr/base/arch/api.h"
#include "pxr/base/arch/defines.h"
#include "pxr/base/arch/inttypes.h"
#include <algorithm>
#include <atomic>
#include <iterator>
#include <numeric>
+ Include dependency graph for timing.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ArchIntervalTimer
 

Functions

PXR_NAMESPACE_OPEN_SCOPE uint64_t ArchGetTickTime ()
 
uint64_t ArchGetStartTickTime ()
 
uint64_t ArchGetStopTickTime ()
 
ARCH_API uint64_t ArchGetTickQuantum ()
 
ARCH_API uint64_t ArchGetIntervalTimerTickOverhead ()
 
ARCH_API int64_t ArchTicksToNanoseconds (uint64_t nTicks)
 
ARCH_API double ArchTicksToSeconds (uint64_t nTicks)
 
ARCH_API uint64_t ArchSecondsToTicks (double seconds)
 
ARCH_API double ArchGetNanosecondsPerTick ()
 
ARCH_API uint64_t Arch_MeasureExecutionTime (uint64_t maxTicks, bool *reachedConsensus, void const *m, uint64_t(*callM)(void const *, int))
 
template<class Fn >
uint64_t ArchMeasureExecutionTime (Fn const &fn, uint64_t maxTicks=1e7, bool *reachedConsensus=nullptr)
 

Detailed Description

High-resolution, low-cost timing routines.

Definition in file timing.h.