Lasso Soft Inc. > Home

[ sys_clock ]

Method

This method corresponds to the system's clock() function. That function returns the best available approximation to the processor time used by the process since it was launched. This value is returned as an integer representing millionths of a second.

Consult your operating system's documentation for the exact behavior of this function.

  • Syntax
sys_clock
Examples
  • Beginner

Show processor time usage in seconds.

Code

'This process has used ' + (sys_clock / 1000000.0) + ' seconds of processor time.'

Result

This process has used 10.306911 seconds of processor time.
This result will vary

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft