Lines Matching refs:elapsed

38   LARGE_INTEGER elapsed;
64 tmp->elapsed.QuadPart = 0;
77 * Starts the timer. This sets the reference time from which all new elapsed
78 * time are computed. This does not reset the elapsed time to 0. This is
99 timer->elapsed.QuadPart += now.QuadPart - timer->RefTime.QuadPart;
106 * Returns the timer elapsed time. If the Timer is in the stopped state,
109 * elapsed time since the last time PTimerStart() was called.
111 ESR_ReturnCode PTimerGetElapsed(PTimer *timer, asr_uint32_t* elapsed)
113 if (timer == NULL || elapsed == NULL)
120 *elapsed = (asr_uint32_t) ((timer->elapsed.QuadPart + (now.QuadPart - timer->RefTime.QuadPart))
124 *elapsed = (asr_uint32_t) (timer->elapsed.QuadPart / timer->PerformanceFreq.QuadPart);
131 * Resets the elapsed time to 0 and resets the reference time of the Timer.
138 timer->elapsed.QuadPart = 0;
159 asr_uint32_t elapsed;
190 * Starts the timer. This sets the reference time from which all new elapsed
191 * time are computed. This does not reset the elapsed time to 0. This is
220 timer->elapsed = (asr_uint32_t) ((TIMER_MAX_VAL - remaining.it_value.tv_sec) * SECOND2MSECOND
227 * Returns the timer elapsed time. If the Timer is in the stopped state,
230 * elapsed time since the last time PTimerStart() was called.
232 ESR_ReturnCode PTimerGetElapsed(PTimer *timer, asr_uint32_t* elapsed)
234 if (timer == NULL || elapsed == NULL)
237 if (timer->elapsed == 0) /* stop is not called */
241 *elapsed = (asr_uint32_t) ((TIMER_MAX_VAL - remaining.it_value.tv_sec) * SECOND2MSECOND
245 *elapsed = timer->elapsed;
252 * Resets the elapsed time to 0 and resets the reference time of the Timer.
258 timer->elapsed = 0;