Navigation
API > API/Developer > API/Developer/TraceAnalysis > API/Developer/TraceAnalysis/FTraceWriter
Description
Sets the custom clock for the session time. Warning: It is only valid to set these before writer's Begin().
| Name | SetCustomClock |
| Type | function |
| Header File | /Engine/Source/Developer/TraceAnalysis/Public/Trace/TraceWriter.h |
| Include Path | #include "Trace/TraceWriter.h" |
void SetCustomClock
(
uint64 InTimeFrequency,
TFunction< uint64()> InTimeGetter,
uint64 InStartTime,
double InStartTimeSinceEpoch
)
Parameters
| Name | Remarks |
|---|---|
| InTimeFrequency | The time frequency; the number of [ticks] in a second. |
| InTimeGetter | The custom getter for the session time; when called it is expected to return the current session time, in [ticks]. |
| InStartTime | The start session timestamp, in [ticks]. |
| InStartTimeSinceEpoch | The start session time since Unix Epoch (January 1st of 1970), in [seconds]. Should match InStartTime. |