lr.start_timer

Starts a timer.

long lr.start_timer(); 
Informational FunctionsJava Syntax

lr.start_timer starts a timer that calculates the passage of time in seconds. The resolution depends on the runtime environment. The maximum resolution is a microsecond.

lr.start_timer returns a handle to the timer. Pass the handle to lr.end_timer to stop the timer.

Return Values

Returns merc_timer_handle_t, a handle to a timer.

Parameterization

Parameterization is not applicable to this function.

Example

This example shows starting a timer. See also the C Example.

timer = lr.start_timer();