public double getCumulativeElapsedTimeGlobal ( ProfilingEvent stage ) { final long [ ] accumulatedTimesHolder = new long [ NUM_EVENTS ] ; globalAcc . consultAccumulatedTimes ( accumulatedTimesHolder ) ; return accumulatedTimesHolder [ 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 last thread that executed this KernelDeviceProfile instance respective kernel and device .