Previous section To contents Next section

7.3 gauge

The syntax for gauge is the same as the syntax for catch:
gauge { statements }
However, gauge simply returns how many seconds the code took to execute. This can be used to find out how fast your code actually is.. :) Only CPU time used by the Pike process is measured. This means that if it takes two seconds to execute but only uses 50 % CPU, this function will return 1.0.

Previous section To contents Next section