Xem kết hợp Flat Xem Xem cây
Luồng thảo luận [ Trước | Tiếp theo ]
toggle
Script Execution Time
community documentation adoscript constructs
Câu trả lời
11:36 27/03/2014
We would like to sum up the time to get the durations for different parts of the script. Is there a way to cast the resulting time values to double/integer like it is possible to get it as a String with "as-string"?

RE: Script Execution Time
Câu trả lời
09:18 18/03/2014 gửi bài phản hồi tới Cho phép người dùng chưa đăng ký.
The getTickCount() function of AdoScript can be used, that returns the number of milliseconds that have elapsed since the system was started. An example to run a comparison could look like that:

1SET t1: (getTickCount())
2# ... actual script that performs something
3SET t2: (getTickCount())
4# make it to secs
5SET sec: ((t2 - t1) * 0.001)
6CC "AdoScript" INFOBOX ("The computation took " + STR sec + " seconds.")