public double getCumulativeElapsedTimeCurrrentThread ( ProfilingEvent stage ) { Accumulator acc = getAccForThread ( ) ; return acc == null ? Double . NaN : acc . accumulatedTimes [ stage . ordinal ( ) ] / MILLION ; }
Elapsed time for a single event only i . e . since the previous stage rather than from the start summed over all executions for the current thread if it has executed the kernel on the device assigned to this KernelDeviceProfile instance .