Scheduler
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
utils
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
17
void
ProgramTime::init
()
18
{
19
tp = clock();
20
}
21
22
double
ProgramTime::elapsedTimeInSeconds
()
23
{
24
auto
tp2 = clock();
25
auto
timeSpan = (double)(tp2-tp)/CLOCKS_PER_SEC;
26
return
timeSpan;
27
}
28
29
programTime.h
Utils::ProgramTime::init
static void init()
Definition:
programTime.cpp:17
Utils
Definition:
context.h:16
Utils::ProgramTime::elapsedTimeInSeconds
static double elapsedTimeInSeconds()
Definition:
programTime.cpp:22
Generated on Sun Nov 26 2017 17:01:36 for Scheduler by
1.8.11