Share this page

# lr.start_timer

Starts a timer.

    long lr.start_timer();

Informational Functions | Java 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();

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: