6#ifndef MATERIALX_TIMER_H
7#define MATERIALX_TIMER_H
16MATERIALX_NAMESPACE_BEGIN
23 using clock = std::chrono::high_resolution_clock;
39 double* _externalCounter;
40 std::chrono::time_point<clock> _startTime;
43MATERIALX_NAMESPACE_END
Macros for declaring imported and exported symbols.
A class for scoped event timing.
Definition: Timer.h:21
void endTimer()
Deactivate the timer, and add the elapsed time to our external counter.
void startTimer()
Activate the timer, and set our start time to the current moment.
double elapsedTime()
Return the elapsed time in seconds since our start time.