Time taken by a procedure in SQR

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


You can review more about this document by using the following Google Search
Google

Related Posts by Categories



No comments:

Post a Comment