RapyutaSimulationPlugins
Source
RapyutaSimulationPlugins
Public
Tools
TimeLogger.h
Go to the documentation of this file.
1
13
#pragma once
14
15
16
17
#include "CoreMinimal.h"
18
19
#include "GameFramework/Actor.h"
20
21
#include "Kismet/GameplayStatics.h"
22
23
#include "Misc/DateTime.h"
24
25
#include "Misc/FileHelper.h"
26
27
28
29
#include "TimeLogger.generated.h"
30
31
32
46
class
RAPYUTASIMULATIONPLUGINS_API
ATimeLogger
:
public
AActor
47
48
{
49
50
51
52
public
:
53
62
ATimeLogger
();
63
64
65
66
protected
:
67
76
virtual
void
BeginPlay()
override
;
77
78
79
80
public
:
81
82
// Called every frame
83
94
virtual
void
Tick(
float
DeltaTime)
override
;
95
96
97
111
void
StartTimer();
112
113
114
128
void
DumpData();
129
130
131
132
137
TArray<FString>
RealTimeHistory
;
138
139
140
141
146
TArray<FString>
SimTimeHistory
;
147
148
149
150
155
FTimerHandle
timerHandle
;
156
157
158
160
161
166
float
MaxTime = 10.f;
167
168
169
170
175
float
StartSimTime = 0.f;
176
177
178
179
184
FDateTime
StartRealTime
;
185
186
};
187
ATimeLogger::RealTimeHistory
TArray< FString > RealTimeHistory
Definition:
TimeLogger.h:137
ATimeLogger::timerHandle
FTimerHandle timerHandle
Definition:
TimeLogger.h:155
ATimeLogger::StartRealTime
FDateTime StartRealTime
Definition:
TimeLogger.h:184
ATimeLogger::SimTimeHistory
TArray< FString > SimTimeHistory
Definition:
TimeLogger.h:146
ATimeLogger
Log Simulation and Real timestamps to files.
Definition:
TimeLogger.h:46
Generated by
1.8.17