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 !!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to know a method to measure the exection time to run the batch file
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 !!!