timer fix

This commit is contained in:
hchandirasekar
2021-03-25 16:38:53 +05:30
parent a742245116
commit 7620ee48e7
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -60,7 +60,7 @@
#define TKDNN_TSTART auto start = std::chrono::high_resolution_clock::now();
#define TKDNN_TSTOP auto stop = std::chrono::high_resolution_clock::now(); \
std::chrono::duration<double> duration = stop -start; \
auto time_ms = std::chrono::duration_cast<std::chrono::microseconds>(duration);\
auto time_ms = std::chrono::duration_cast<std::chrono::milliseconds>(duration);\
double t_ns = time_ms.count();
#endif