Home | History | Annotate | Download | only in include

Lines Matching refs:timer

38  * Creates a new timer object.
40 * @param timer PCPUTimer handle
41 * @return ESR_INVALID_ARGUMENT if timer is value it points to is null
43 PORTABLE_API ESR_ReturnCode PCPUTimerCreate(PCPUTimer **timer);
47 * Destroys timer object.
49 * @param timer PCPUTimer handle
50 * @return ESR_INVALID_ARGUMENT if timer is null
52 PORTABLE_API ESR_ReturnCode PCPUTimerDestroy(PCPUTimer *timer);
55 * Starts the timer. This sets the reference time from which all new elapsed
57 * useful to pause the timer.
59 * @return ESR_INVALID_ARGUMENT if timer is null; ESR_FATAL_ERROR if OS timer is available
61 PORTABLE_API ESR_ReturnCode PCPUTimerStart(PCPUTimer *timer);
64 * Stops the timer.
66 * @return ESR_INVALID_ARGUMENT if timer is null; ESR_FATAL_ERROR if OS timer is available
68 PORTABLE_API ESR_ReturnCode PCPUTimerStop(PCPUTimer *timer);
71 * Returns the timer elapsed time. If the Timer is in the stopped state,
73 * Timer is in the started state, successive calls will return the elapsed
76 * @return ESR_INVALID_ARGUMENT if timer or elapsed to is null; ESR_FATAL_ERROR if OS timer is available
78 PORTABLE_API ESR_ReturnCode PCPUTimerGetElapsed(PCPUTimer *timer,
82 * Resets the elapsed time to 0 and resets the reference time of the Timer.
83 * This effectively reset the timer in the same state it was right after
86 * @return ESR_INVALID_ARGUMENT if timer is null
88 PORTABLE_API ESR_ReturnCode PCPUTimerReset(PCPUTimer *timer);