Concept Framework 2.0 documentation | Contents | Index |
Name | Version | Deprecated |
clock | version 1.0 | no |
number clock() |
The clock function's era begins (with a value of 0) when the Concept program starts to execute. It returns times measured in 1/CLOCKS_PER_SEC
|
import standard.C.time class Main { function Main() { var start=clock(); echo "Something to do ...\n"; for (var i=0;i<1000000;i++) { // NOTHING } var end=clock(); echo "Elapsed : " + (end-start) + " clock ticks"; } } Results Something to do ... Elapsed : 150 clock ticks |
Documented by Simona Gabriela Plesuvu, generation time: Fri Jan 21 18:06:19 2011 GMT | (c)2011 RadGs Software |