public double getCumulativeElapsedTimeAllGlobal ( ) { final long [ ] accumulatedTimesHolder = new long [ NUM_EVENTS ] ; globalAcc . consultAccumulatedTimes ( accumulatedTimesHolder ) ; double sum = 0 ; for ( int i = 1 ; i <= ProfilingEvent . EXECUTED . ordinal ( ) ; ++ i ) { sum += accumulatedTimesHolder [ i ] ; } return sum ; }
Elapsed time of entire execution summed over all executions for all the threads that executed the kernel on this device .