def event_elapsed_time(evtstart, evtend):
 msec = c_float()
 driver.cuEventElapsedTime(byref(msec), evtstart.handle, evtend.handle)
 return msec.value

def event_elapsed_time ( evtstart , evtend ) : msec = c_float ( ) driver . cuEventElapsedTime ( byref ( msec ) , evtstart . handle , evtend . handle ) return msec . value
compute the elapsed time between two events in milliseconds .