RapyutaSimulationPlugins
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ATimeLogger Class Reference

Log Simulation and Real timestamps to files. More...

#include <TimeLogger.h>

Inheritance diagram for ATimeLogger:
Inheritance graph
[legend]
Collaboration diagram for ATimeLogger:
Collaboration graph
[legend]

Public Member Functions

 ATimeLogger ()
 Construct a new ATimeLogger object. Sets default values for this actor's properties. More...
 
virtual void Tick (float DeltaTime) override
 Called every frame. Save simulation time and real time to SimTimeHistory and RealTimeHistory . More...
 
void StartTimer ()
 Start saving time stamp. More...
 
void DumpData ()
 Dump data to files. More...
 

Public Attributes

TArray< FString > RealTimeHistory
 
TArray< FString > SimTimeHistory
 
FTimerHandle timerHandle
 
float MaxTime = 10.f
 Max time to log. More...
 
float StartSimTime = 0.f
 
FDateTime StartRealTime
 

Protected Member Functions

virtual void BeginPlay () override
 Called when the game starts or when spawned. More...
 

Detailed Description

Log Simulation and Real timestamps to files.

UCLASS()

Constructor & Destructor Documentation

◆ ATimeLogger()

ATimeLogger::ATimeLogger ( )

Construct a new ATimeLogger object. Sets default values for this actor's properties.

Member Function Documentation

◆ BeginPlay()

virtual void ATimeLogger::BeginPlay ( )
overrideprotectedvirtual

Called when the game starts or when spawned.

◆ DumpData()

void ATimeLogger::DumpData ( )

Dump data to files.

UFUNCTION(BlueprintCallable)

◆ StartTimer()

void ATimeLogger::StartTimer ( )

Start saving time stamp.

UFUNCTION(BlueprintCallable)

◆ Tick()

virtual void ATimeLogger::Tick ( float  DeltaTime)
overridevirtual

Called every frame. Save simulation time and real time to SimTimeHistory and RealTimeHistory .

if time elapsed more than MaxTime, call DumpData to save data to files.

Parameters
DeltaTime

Member Data Documentation

◆ MaxTime

float ATimeLogger::MaxTime = 10.f

◆ RealTimeHistory

TArray<FString> ATimeLogger::RealTimeHistory

◆ SimTimeHistory

TArray<FString> ATimeLogger::SimTimeHistory

◆ StartRealTime

FDateTime ATimeLogger::StartRealTime

◆ StartSimTime

float ATimeLogger::StartSimTime = 0.f

◆ timerHandle

FTimerHandle ATimeLogger::timerHandle

The documentation for this class was generated from the following file: