7 #ifndef PXR_BASE_TF_STOPWATCH_H
8 #define PXR_BASE_TF_STOPWATCH_H
82 _sampleCount += t._sampleCount;
122 uint64_t _nTicks = 0;
123 uint64_t _startTick = 0;
124 size_t _sampleCount = 0;
137 #endif // PXR_BASE_TF_STOPWATCH_H
ARCH_API double ArchTicksToSeconds(uint64_t nTicks)
TF_API std::ostream & operator<<(std::ostream &out, const TfStopwatch &s)
void Reset()
Resets the accumulated time and the sample count to zero.
ARCH_API int64_t ArchTicksToNanoseconds(uint64_t nTicks)
void AddFrom(const TfStopwatch &t)
int64_t GetNanoseconds() const
uint64_t ArchGetStartTickTime()
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
int64_t GetMicroseconds() const
#define PXR_NAMESPACE_CLOSE_SCOPE
size_t GetSampleCount() const
uint64_t ArchGetStopTickTime()
int64_t GetMilliseconds() const
Return the accumulated time in milliseconds.
double GetSeconds() const
Return the accumulated time in seconds as a double.