Scheduler
programTime.cpp
Go to the documentation of this file.
1 
10 #include "programTime.h"
11 #include <chrono>
12 
13 using namespace Utils;
14 
15 clock_t ProgramTime::tp;
16 
18 {
19  tp = clock();
20 }
21 
23 {
24  auto tp2 = clock();
25  auto timeSpan = (double)(tp2-tp)/CLOCKS_PER_SEC;
26  return timeSpan;
27 }
28 
29 
static void init()
Definition: programTime.cpp:17
Definition: context.h:16
static double elapsedTimeInSeconds()
Definition: programTime.cpp:22