OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
PerformanceTracker.h
Go to the documentation of this file.
1
#pragma once
2
#include "
SystemDependencies/SystemDependentDefines.h
"
3
#include <time.h>
4
#include <string>
5
6
7
class
PerformanceTracker
8
{
9
public
:
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
17
private
:
18
double
_setupTime;
19
double
_simulationTime;
20
index_t
_numberOfNodes;
21
22
clock_t _start;
23
};
nodes
@ nodes
Definition
MonitorSettings.h:17
SystemDependentDefines.h
index_t
int64_t index_t
Definition
SystemDependentDefines.h:13
PerformanceTracker
Definition
PerformanceTracker.h:8
PerformanceTracker::SetNumberOfNodes
void SetNumberOfNodes(index_t nodes)
Definition
PerformanceTracker.h:15
PerformanceTracker::SetSimulationTime
void SetSimulationTime(double time)
Definition
PerformanceTracker.h:13
PerformanceTracker::StartTimer
void StartTimer(void)
Definition
PerformanceTracker.cpp:13
PerformanceTracker::StopTimer
double StopTimer(void)
Definition
PerformanceTracker.cpp:18
PerformanceTracker::Print
std::string Print(void)
Definition
PerformanceTracker.cpp:3
PerformanceTracker::SetSetupTime
void SetSetupTime(double time)
Definition
PerformanceTracker.h:14
Services
FITTDService
include
PerformanceTracker.h
Generated by
1.10.0