blob: eb0c9ff77ead94a902068b3d4feb699069062034 [file] [log] [blame]
#pragma once
#include <time.h>
namespace ctre {
namespace phoenix {
class Stopwatch {
public:
void Start();
unsigned int DurationMs();
float Duration();
private:
unsigned long _t0 = 0;
unsigned long _t1 = 0;
float _scalar = 0.001f / CLOCKS_PER_SEC;
};
}}