timer.h File Reference
#include <chrono>
#include <cstdio>
#include <fstream>
Go to the source code of this file.
Classes | |
class | Profiler |
Namespaces | |
timer | |
Functions | |
std::chrono::high_resolution_clock::time_point | timer::now () |
Get current time. More... | |
float | timer::elapsed (std::chrono::high_resolution_clock::time_point &tic, bool reset=false) |
Get elapsed time in seconds. More... | |
void | timer::reset (std::chrono::high_resolution_clock::time_point &tic, float *cumul=nullptr) |
Dump current time and reset it afterwards. More... | |