Utility Functions and C Language Reference > Utility Functions: Java (lr.) > Alphabetical Listing > lr_end_timer

lr_end_timer

Stops a timer.

C Language

double lr_end_timer (merc_timer_handle_t timer); 
Example: lr_end_timer Informational Functions

Java Language

long lr.end_timer(long timer); 
Example: lr.end_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 in seconds. The resolution depends on the run-time environment. The maximum resolution is a microsecond.

Return Values

The function returns the elapsed time in seconds.

Parameterization

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