| Concept Framework 2.2 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: Sun Jan 27 18:15:15 2013 GMT | (c)2013 Devronium Applications |