Difference between revisions of "Calculating the elapsed time"

From ArcoWiki
Jump to: navigation, search
(Created page with "This is used to '''calculate the time between two moments''' in the program execution.<br/> It is typically used to calculate the execution time of a program.<br/> <code><spa...")
 
 
(2 intermediate revisions by one other user not shown)
Line 19: Line 19:
 
<code><span style="color: green; text-decoration: none;">$$ Elapsed Time with Indication of day</span><br/></code>
 
<code><span style="color: green; text-decoration: none;">$$ Elapsed Time with Indication of day</span><br/></code>
 
::<code>elapsed_time_form2  = ASSIGN/SELAPSETIME(start_time, end_time, SHORT)</code>
 
::<code>elapsed_time_form2  = ASSIGN/SELAPSETIME(start_time, end_time, SHORT)</code>
 +
[[it:Calcolo del tempo trascorso]]
 +
[[zh-cn:计算经过的时间]]
 +
[[pt:Calculando o tempo decorrido]]
 +
[[de:Berechnung der verstrichenen Zeit]]
 +
[[es:Cálculo del tiempo transcurrido]]
 +
[[en:Calculating the elapsed time]]
 +
 +
[[Category:Dmis_Tutorial]]

Latest revision as of 12:19, 4 June 2018

This is used to calculate the time between two moments in the program execution.
It is typically used to calculate the execution time of a program.

$$Begin Example…

DECL/CHAR,100,start_time,end_time,elapsed_time_form1, elapsed_time_form2

$$Reading Start time

start_time = ASSIGN/SDATETIME()

$$ stop the execution for 2 seconds

DMESW/DELAY,2

$$Reading End Time

end_time = ASSIGN/SDATETIME()

$$Elapsed Time without indication of day

elapsed_time_form1 = ASSIGN/SELAPSETIME(start_time, end_time, LONG)

$$ Elapsed Time with Indication of day

elapsed_time_form2 = ASSIGN/SELAPSETIME(start_time, end_time, SHORT)