Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert Instant+Duration to use a Real for $.tai..
This lets us implement a bunch of their functionality with integer math based on nqp::time returning integer nanoseconds since the epoch instead of floating point seconds. However, many of the outward-facing outputs (e.g., `.Str()`) convert to Num/Rat for backwards compatibility. `my $a; my $s := now; $a := now for ^100_000; say now - $s;` used to take ~0.9s, but now takes ~0.03s.
- Loading branch information
1 parent
acaef29
commit c1f341c
Showing
2 changed files
with
66 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters