Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt
hiddentrue

spin(duration) Loops spins (in a cpu loop) for a period of time (in seconds).

Function: spin()

Pauses the thread analysis 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'.

Please note that this function should only be used as part of development or testing of an analysis model, and not during normal usage.

Syntax

spin(duration)

ArgumentTypeDescription
duration
Integer
Number
Pause
Spin duration (in seconds)

Examples

spin(0.1)

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

...