/////////////////////////////////////////////////////////////////////////// Return the average time for timer execution as the total time for the timer dividied by the number of completed (stopped) runs the timer has made. Excludes the current running time if the timer is currently running. @param name name of the timer to return the time of ///////////////////////////////////////////////////////
| 439 | //! @param name name of the timer to return the time of |
| 440 | //////////////////////////////////////////////////////////////////////////////// |
| 441 | inline float sdkGetAverageTimerValue(StopWatchInterface **timer_interface) { |
| 442 | // printf("sdkGetAverageTimerValue called object %08x\n", (void |
| 443 | // *)*timer_interface); |
| 444 | if (*timer_interface) { |
| 445 | return (*timer_interface)->getAverageTime(); |
| 446 | } else { |
| 447 | return 0.0f; |
| 448 | } |
| 449 | } |
| 450 | |
| 451 | //////////////////////////////////////////////////////////////////////////////// |
| 452 | //! Total execution time for the timer over all runs since the last reset |