Changes

Jump to: navigation, search

GPU621/Chapel

306 bytes added, 23:23, 29 November 2022
Timer
=== Timer ===
The Chapel allows user to use Timer from the timer module.
use Time;
/* Create a Timer t */
var t: Timer;
t.start();
writeln(“Operation start”);
sleep(5);
writeln(“Operation end”);
t.stop();
/* return time in milliseconds that was recorded by the timer */
writeln(t.elapsed(TimeUnits.milliseconds));
t.clear();
= Reference =
73
edits

Navigation menu