While testing, you might want to know how much time a particular procedure or a step in sqr is taking. You may use the following to know the time spent by a procedure or a step.
Begin-Program
let $start_time = edit(datenow(), ‘DD/MM/YYYY-HH:MI:SS:NNNN’)
do any-procedure-or-step
let $end_time = edit(datenow(), ‘DD/MM/YYYY-HH:MI:SS:NNNN’)
let #total_time = datediff(strtodate($end_time,’DD/MM/YYYY-HH:MI:SS:NNNN’), strtodate($start_time,’DD/MM/YYYY-HH:MI:SS:NNNN’),’minute’)
#debugy show ‘total time taken by the Program = ‘ #total_time ‘ minutes’
End-Program
No comments:
Post a Comment