init commit
This commit is contained in:
15
include/host_timer.h
Normal file
15
include/host_timer.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
|
||||
class HostTimer {
|
||||
private:
|
||||
using clock = std::chrono::high_resolution_clock;
|
||||
|
||||
clock::time_point start;
|
||||
|
||||
public:
|
||||
HostTimer();
|
||||
void reset();
|
||||
double elapsed() const;
|
||||
};
|
||||
Reference in New Issue
Block a user