Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 317 Bytes
#pragma once
namespace clay {
struct HiResTimer {
unsigned long long elapsedTicks;
unsigned long long startTicks;
int running;
HiResTimer();
void start();
void stop();
unsigned long long elapsedNanos();
double elapsedMillis() { return (double)elapsedNanos() / (1000 * 1000); }
};
}