Time Stamping

The timeStamp() function gives time-of-day in milliseconds.

The form is:

timeStamp()

The function returns the number of milliseconds since 00:00 hours that day. This is useful for timing operations (presuming you are not timing across midnight.)

Example:

start = timeStamp()

process_mesh() -- do some big job

end = timeStamp()

format "Processing took % seconds\n" ((end - start) / 1000.0)