MetaSoul

Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
FESMeasureTimer Class Reference

`#include <ESMeasureTimer.h>`

## Static Public Member Functions
static void | Tick (const FString &LogMsg=TEXT("TimeTaken"))
static double | Tock (const FString &LogMsg=TEXT("TimeTaken"), bool bShouldLogResult=true)

## Detailed Description

C++ Utility Timer class. Multiple categories can be used simultaneously.

Usage: FEmoShapeMeasureTimer::Tick(TEXT("MyMeasurementCategory")); //Your code FEmoShapeMeasureTimer::Tock(TEXT("MyMeasurementCategory")); //This will log the time taken in miliseconds

optionally get the result and handle logging manually double Elapsed = FEmoShapeMeasureTimer::Tock(TEXT("MyMeasurementCategory", false);

## Member Function Documentation

## ◆ Tick()

void FESMeasureTimer::Tick | ( | const FString & | LogMsg = TEXT("TimeTaken") | ) |
| static

Start a timer for given category

## ◆ Tock()

double FESMeasureTimer::Tock | ( | const FString & | LogMsg = TEXT("TimeTaken"),
|  | bool | bShouldLogResult = true )
| static

Returns time taken in milliseconds (to micro precision). This function will also log the time taken

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

- EmoShapeWebUtility/Public/ESMeasureTimer.h
- EmoShapeWebUtility/Private/ESMeasureTimer.cpp