MetaSoul

Loading...
Searching...
No Matches
ESMeasureTimer.h
Go to the documentation of this file.
1#pragma once
2#include "CoreMinimal.h"
3
4//Toggle to enable/disable timing code logs
5#define ENABLE_EMOSHAPE_PRECISE_TIMER 1
6
19 class EMOSHAPESUBSYSTEM_API FESMeasureTimer
20{
21 public:
25 static void Tick(const FString& LogMsg = TEXT("TimeTaken"));
26
30 static double Tock(const FString& LogMsg = TEXT("TimeTaken"), bool bShouldLogResult = true);
31
32 private:
33 double Then;
34};
35
49 class EMOSHAPESUBSYSTEM_API FESScopeTimer
50{
51 public:
52 FESScopeTimer(const FString& InLogMsg);
53 ~FESScopeTimer();
54 private:
55 FString LogMessage;
56
57};
FESMeasureTimer
Definition ESMeasureTimer.h:20
FESScopeTimer
Definition ESMeasureTimer.h:50