suve

awful: function: dt-runstart

Declaration

float :dt-runstart

Summary

Returns a DateTime value representing the moment of script execution start. This value will be slightly greater than :dt-start due to interpreter startup and file parse time. (Most easily observed when reading code from stdin.)

Example

# :dt-runstart example
:float-precision i12
:writeln s'Interpreter start: ' :dt-start
:writeln s'     Script start: ' :dt-runstart

:set $i :dt-break :sub (:dt-runstart | :dt-start)
:writeln s'Difference: ' $i[s's'] s'.' $i[s'z'] s' seconds'

wikistrona zmodyfikowana 2014/0601/2317