Concept Framework 2.0 documentation | Contents | Index |
Name | Version | Deprecated |
difftime | version 1.0 | no |
number difftime(number timer1, number timer0) |
timer1 | [in] Ending time |
timer2 | [in] Start time |
difftime returns the elapsed time in seconds, from timer0 to timer1. The value returned is a double-precision, floating-point number.
|
import standard.C.time class Main { function Main() { var start=time(); echo "Something to do ...\n"; for (var i=0;i<20000000;i++) { // NOTHING } var end=time(); echo "Elapsed : " + difftime(end,start) + " seconds"; } } Results Something to do ... Elapsed : 2 seconds |
Documented by Simona Gabriela Plesuvu, generation time: Fri Jan 21 18:06:19 2011 GMT | (c)2011 RadGs Software |