Stops a timer.

C Language

double lr_end_timer (merc_timer_handle_t timer); 
Example: lr_end_timerInformational Functions

Java Language

long lr.end_timer(long timer); 
Example: lr.end_timerInformational FunctionsJava Syntax


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.


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