Wait: Difference between revisions
Jump to navigation
Jump to search
imported>Bale mNo edit summary |
imported>StDoodle No edit summary |
||
Line 13: | Line 13: | ||
return_also={{#var:return_also}}| | return_also={{#var:return_also}}| | ||
parameter1={{Param|int|secs}}| | parameter1={{Param|int|secs}}| | ||
p1desc={{pspan|secs}} is the number of seconds you want to | p1desc={{pspan|secs}} is the number of seconds you want to delay further action. | ||
}}| | }}| | ||
Line 19: | Line 19: | ||
needscode=yes| | needscode=yes| | ||
see_also={{SeeAlso|waitq}}| | |||
cli_equiv=The CLI command "wait" functions the same and can be used to pause basic .txt scripts.| | cli_equiv=The CLI command "wait" functions the same and can be used to pause basic .txt scripts.| | ||
}} | }} | ||
[[Category:Miscellaneous Functions]] | [[Category:Miscellaneous Functions]] |
Revision as of 18:20, 27 November 2010
needs(code_samples);
Function Syntax
- secs is the number of seconds you want to delay further action.
This function will initiate a countdown from secs seconds to 0, during which time nothing else will be acted on. It essentially pauses a script. In addition, a countdown prints to the CLI at varying intervals (every 15 secs for large numbers, 5 seconds for smaller numbers and every second from 5 seconds down).
CLI Equivalent
The CLI command "wait" functions the same and can be used to pause basic .txt scripts.