Web Analytics Made Easy - Statcounter
Skip to content

Timer

Handy timer functions.

timer_start

Time your code easily.... starts the timer. Uses the time.time value, a technique known to not be terribly accurage, but tis' gclose enough for our purposes

timer_start()

timer_stop

Time your code easily.... stop the timer and print the number of MILLISECONDS since the timer start

timer_stop()

Parameter Descriptions

Name Type Default Description
RETURN int delta in MILLISECONDS from timer_start was called

timer_stop_usec

Time your code easily.... stop the timer and print the number of MICROSECONDS since the timer start

timer_stop_usec()

Parameter Descriptions

Name Type Default Description
RETURN int delta in MICROSECONDS from timer_start was called