[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.
Date_Msec
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.
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments