From a20617af34e3dbeba682cfa6bf6366f3fc0f8e14 Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 27 Feb 2008 23:11:19 +0000 Subject: PR5697: include tutorial & language reference guide --- doc/tutorial/tapset/time-common.stp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 doc/tutorial/tapset/time-common.stp (limited to 'doc/tutorial/tapset/time-common.stp') diff --git a/doc/tutorial/tapset/time-common.stp b/doc/tutorial/tapset/time-common.stp new file mode 100644 index 00000000..cec5a4ea --- /dev/null +++ b/doc/tutorial/tapset/time-common.stp @@ -0,0 +1,4 @@ +global __time_vars +function timer_begin (name) { __time_vars[name] = __time_value () } +function timer_end (name) { return __time_value() - __time_vars[name] } + -- cgit