|
cuEventElapsedTime |
( |
float * |
pMilliseconds, |
|
|
CUevent |
hStart, |
|
|
CUevent |
hEnd | |
|
) |
| | |
Computes the elapsed time between two events (in milliseconds with a resolution of around 0.5 microseconds). If either event has not been recorded yet, this function returns CUDA_ERROR_NOT_READY. If either event has been recorded with a non-zero stream, the result is undefined.
- Parameters:
-
| pMilliseconds | - Returned elapsed time in milliseconds |
| hStart | - Starting event |
| hEnd | - Ending event |
- Returns:
- CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_HANDLE, CUDA_ERROR_NOT_READY
- Note:
- Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cuEventCreate, cuEventRecord, cuEventQuery, cuEventSynchronize, cuEventDestroy
|