Hi-Res Timings
AUTHOR
stmuk
You want to measure sub-second timings
#!/usr/bin/env raku
use v6;
my $t0 = DateTime.now.Instant;
# apparently not *quite* 2 secs
sleep 2;
say DateTime.now.Instant - $t0;
# vim: expandtab shiftwidth=4 ft=perl6
stmuk
You want to measure sub-second timings
#!/usr/bin/env raku
use v6;
my $t0 = DateTime.now.Instant;
# apparently not *quite* 2 secs
sleep 2;
say DateTime.now.Instant - $t0;
# vim: expandtab shiftwidth=4 ft=perl6
Resoures
Learning
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.