gettime


Purpose
Get a time measure or the time part of a datetime.
Synopsis
function gettime:real
function gettime(dt:datetime):time
Argument
dt 
A datetime object
Return value
Time measure in seconds or a time object.
Example
The following prints the program execution time:
starttime:= gettime                 ! Get the start time
 ...                                ! Do something
write("Time: ",gettime-starttime) 
Further information
1. The measure returned by this function corresponds to the elapsed time since the module has been initialized (just before execution of the model starts).
2. The second form of this function is used to extract the time part of a datetime structure.
Related topics
getdate


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.