File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
= SUBTITLE Performance data over a period
6
6
7
+ = for code :preamble<class Telemetry { }>
7
8
class Telemetry::Period is Telemetry { }
8
9
9
- B < Note: > This class is a Rakudo-specific feature and not standard Perl 6.
10
+ B < Note: > This class is a Rakudo-specific feature and not standard Perl 6.
10
11
11
12
A C < Telemetry::Period > object contains the difference between two C < Telemetry >
12
13
objects. It is generally not created by calling .new, but it can be if needed:
@@ -26,6 +27,7 @@ say "Code took $period (cpu / wallclock) microseconds to execute";
26
27
27
28
= head2 method perl
28
29
30
+ = for code :preamble<use Telemetry;>
29
31
multi method perl(Telemetry::Period:D: --> Str)
30
32
31
33
Returns a Perlish representation of the C < Telemetry::Period > object.
You can’t perform that action at this time.
0 commit comments