Menu

Measure exection time

Help
2016-06-08
2016-07-20
  • Hanan Mansour Mohamed

    I want to know a method to measure the exection time to run the batch file

     
  • Hanan Mansour Mohamed

    how the elapsed time is measured in CLIPS
    I use the following code to measure the execution time
    (close time)
    (open "d:\temp.txt" temp "w")
    (printout temp (time) crlf)
    (close temp)
    (reset)
    (batch response_2mod.bat)
    (bind ?etime (time))
    (open "d:\temp.txt" temp "r")
    (bind ?stime (read temp))
    (close temp)
    (remove "d:\temp.txt")
    (bind ?exectime (- ?etime ?stime))
    (open "d:\time.txt" time "w")
    (printout time "Start time is " ?stime crlf)
    (printout time "End time is " ?etime crlf)
    (printout time "Execution time equals " ?exectime crlf)
    (close time)

    it gives fewer elapsed time when i run long operation !!!

     

Log in to post a comment.