warp.get_event_elapsed_time#
- warp.get_event_elapsed_time(start_event, end_event, synchronize=True)[source]#
Get the elapsed time between two recorded events.
Both events must have been previously recorded with
record_event()orwarp.Stream.record_event().If
synchronizeis False, the caller must ensure that device execution has reachedend_eventprior to callingget_event_elapsed_time().- Parameters:
- Returns:
The elapsed time in milliseconds. Note that the CUDA event timing resolution is about 0.5 microseconds, so short operations may appear longer than actual.