Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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)

ArgumentTypeDescription
durationNumberSpin duration (in seconds)

Examples

spin(0.1)

Spins (in a cpu loop) for one tenth of a second.

See Also

  • No labels