Share this page

# lr.end_timer

Stops a timer.

    long lr.end_timer(long timer);

Informational Functions | Java Syntax

## Arguments

Name | Comments
--- | ---
timer | The handle of the timer returned by lr.start_timer.

lr.end_timer stops a timer that began timing when lr.start_timer was called. It returns the elapsed time. The resolution depends on the runtime environment. The maximum resolution is a microsecond.

## Return Values

The function returns the elapsed time in seconds. In Java, the function returns the elapsed time in milliseconds.

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

This example show use of start_timer. See also the C Example.

    timer = lr.start_timer();
    ...

    /* result is in milliseconds */
    time_elapsed = lr.end_timer(timer);

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