OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PerformanceTracker.h
Go to the documentation of this file.
1#pragma once
3#include <time.h>
4#include <string>
5
6
8{
9public:
10 std::string Print(void);
11 void StartTimer(void);
12 double StopTimer(void);
13 void SetSimulationTime(double time) { _simulationTime = time; }
14 void SetSetupTime(double time) { _setupTime = time; }
15 void SetNumberOfNodes(index_t nodes) { _numberOfNodes = nodes; }
16
17private:
18 double _setupTime;
19 double _simulationTime;
20 index_t _numberOfNodes;
21
22 clock_t _start;
23};
@ nodes
Definition MonitorSettings.h:17
int64_t index_t
Definition SystemDependentDefines.h:13
Definition PerformanceTracker.h:8
void SetNumberOfNodes(index_t nodes)
Definition PerformanceTracker.h:15
void SetSimulationTime(double time)
Definition PerformanceTracker.h:13
void StartTimer(void)
Definition PerformanceTracker.cpp:13
double StopTimer(void)
Definition PerformanceTracker.cpp:18
std::string Print(void)
Definition PerformanceTracker.cpp:3
void SetSetupTime(double time)
Definition PerformanceTracker.h:14