Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: stopwatch.delete - Function Up: stopwatch - Tool Previous: stopwatch.timefunc - Function


stopwatch.help - Function



Package utility
Module misc
Tool stopwatch


display help


Synopsis
help()



Example
- tim.help()
Stopwatch style timing.  Available member functions:
 
tim := stopwatch()  # timer is created running and zeroed
 
tim.start()       # timer returns mutable values
tim.stop()        # timer returns fixed values
tim.reset()       # zeros time w/o state change
tim.zero()        # stop followed by reset
tim.state()       # returns 'RUNNING' or 'STOPPED'
tim.value()       # return current value in seconds
tim.fmtvalue(v)   # return string formatted value, with units
tim.show()        # print state and value of timer
tim.timefunc(func,niter,label)
                  # time function f.  Should take no parameters
tim.delete()      # destroy the tool
 
Most functions take an optional quiet argument to suppress informational
messages.  Notice that tim.timefunc(function () {foo(5)}) is a valid call
if you wish to avoid defining a new function to provide arguments.  After
timing a function, the numerical interval can be retrieved with tim.value()
F





next up previous contents index
Next: stopwatch.delete - Function Up: stopwatch - Tool Previous: stopwatch.timefunc - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15