summaryrefslogtreecommitdiffstats
path: root/doc/tutorial/tapset/time-common.stp
blob: cec5a4eaa98c5ddf06b097f5e743816d91f8b504 (plain)
1
2
3
4
global __time_vars
function timer_begin (name) { __time_vars[name] = __time_value () }
function timer_end (name) { return __time_value() - __time_vars[name] }