30 using namespace std::chrono;
41 start_proc = std::clock();
42 start_wall= high_resolution_clock::now();
47 stop_proc = std::clock();
48 stop_wall = high_resolution_clock::now();
51 double proc =
static_cast<double>(stop_proc - start_proc) /
static_cast<double>(CLOCKS_PER_SEC);
53 double wall = duration<double>(stop_wall - start_wall).count();
void reset()
Reset the statistics.
double t_wall
Accumulated wall time [s] since last reset.
double t_proc
Accumulated proc time [s] since last reset.
casadi_int n_call
Accumulated number of calls since last reset.