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.state - Function Up: stopwatch - Tool Previous: stopwatch.value - Function


stopwatch.fmtvalue - Function



Package utility
Module misc
Tool stopwatch


formatted string value of timer with units


Synopsis
fmtvalue(value)



Arguments

value   Time in seconds to be formatted
    Default: Current value()



Returns
formatted time string value with units



Description
If no explicit value is passed to the function, the current value of the stopwatch will be used. Leading fields with zero value are suppressed.



Example
An extreme example might be
- tim.fmtvalue()
27y 306d 20h 45m 54.44s
Or when passing in an explicit value
- tim.fmtvalue(90)
1m 30.00s





next up previous contents index
Next: stopwatch.state - Function Up: stopwatch - Tool Previous: stopwatch.value - 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