Lasso Soft Inc. > Home

[ millis ]

Method

[Date_Msec] returns an integer representing the number of milliseconds recorded on the machine's internal clock. Can be used for precise timing of code execution.

[Date_Msec] is runctionally equivalent to [millis]. For new projects in Lasso 9 use of [millis] is encouraged.

  • Syntax
Date_Msec
Examples
  • Beginner

To time the execution of code:

Use the [Date_Msec] method. The following example times the execution of an arbitrary code sample.

Code

var(start = Date_Msec)
// code to time
'Execution time: ' + (Date_Msec - $start) + ' milliseconds.'

Result

Execution time: 1194 milliseconds.

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