Navigation
API > API/Developer > API/Developer/TraceServices > API/Developer/TraceServices/ILogProvider
Description
Finds the log message with closest timestamp to the specified time.
The current number of messages (MessageCount) could be different than the value returned by the last call to GetMessageCount().
| Name | BinarySearchClosestByTime |
| Type | function |
| Header File | /Engine/Source/Developer/TraceServices/Public/TraceServices/Model/Log.h |
| Include Path | #include "TraceServices/Model/Log.h" |
virtual uint64 BinarySearchClosestByTime
(
double Time
) const
The index of the message with the closest timestamp to the specified time. If MessageCount is 0, this function returns 0; otherwise it returns a valid index in range [0, MessageCount-1]. Returns ~0ull if not implemented.
Parameters
| Name | Remarks |
|---|---|
| Time | The time value, in seconds. |