Navigation
API > API/Developer > API/Developer/TraceServices > API/Developer/TraceServices/IFrameProvider
Description
Gets the index of the first frame with start time <= specified time, for the specified frame type. Note: This function does not check the end time of frames.
| Name | GetFrameNumberForTimestamp |
| Type | function |
| Header File | /Engine/Source/Developer/TraceServices/Public/TraceServices/Model/Frames.h |
| Include Path | #include "TraceServices/Model/Frames.h" |
uint32 GetFrameNumberForTimestamp
(
ETraceFrameType FrameType,
double Time
) const
index of the first frame with start time <= time; also returns 0 when time < start time of the first frame or if frame count is zero
Parameters
| Name | Remarks |
|---|---|
| FrameType | type of frames |
| Time | time value, in seconds |