PhixFlow Help
spin
Function: spin()
Spins (in a cpu loop) for a period of time (in seconds).
The main use of the spin function is to temporarily change the performance characteristics of an operation, to make it more 'cpu intensive'.
Syntax
spin(duration)
Argument | Type | Description |
---|---|---|
duration | Number | Spin duration (in seconds) |
Examples
spin(0.1)
Spins (in a cpu loop) for one tenth of a second.
See Also
Please let us know if we could improve this page feedback@phixflow.com