24 #ifndef PXR_BASE_TF_STOPWATCH_H
25 #define PXR_BASE_TF_STOPWATCH_H
99 _sampleCount += t._sampleCount;
139 uint64_t _nTicks = 0;
140 uint64_t _startTick = 0;
141 size_t _sampleCount = 0;
154 #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.