LassoScript Utility
Basics Browse Detail


Tag Link [Date_Msec] Category Date
Type Substitution Source Available No
Support Preferred Version 8.5
Change New Data Source Any
Output Type Integer Security None
Implementation Internal Sets Lasso 8.5


[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. Note that the [Date_Msec] value may occasionally roll back around to zero so any negative times reported by timing code should be disregarded.


Var: 'start' = Date_Msec;
... The code to time ...
'The code took ' + (Date_Msec - $start) + ' milliseconds to process.';


No Parameters Required.

Change Notes

This tag has been implemented as _date_msec for several versions of Lasso. The _date_msec tag can be used for compatibility with older versions of Lasso, but [Date_Msec] is the new preferred usage.


See the Lasso 8 Language Guide for examples of how to use this tag.