Changes

Jump to: navigation, search

GPU621/The Chapel Programming Language

509 bytes added, 12:45, 3 December 2020
Library Utilities
=== Library Utilities ===
 
'''Time Module'''
 
'''Timer:''' a timer is part of the time module which can be imported using the following statement:
 
use Time;
 
config const quiet: bool = false;
 
/* Create a Timer t */
var t: Timer;
 
t.start();
writeln(“Operation start”);
sleep(5);
writeln(“Operation end”);
t.stop();
 
If !quiet then {
/* return time in milliseconds that was recorded by the timer */
writeln(t.elapsed(TimeUnits.milliseconds));
}
t.clear();
 
=== Numerical Libraries ===
19
edits

Navigation menu