1Test2::Plugin::Times(3)User Contributed Perl DocumentatioTnest2::Plugin::Times(3)
2
3
4
6 Test2::Plugin::Times - Output timing data at the end of the test.
7
9 This plugin will output a diagnostics message at the end of testing
10 that tells you how much time elapsed, and how hard the system worked on
11 the test.
12
13 This will produce a string like one of these (Note these numbers are
14 completely made up). Which string is used depends on the time elapsed.
15
16 0.12345s on wallclock (0.05 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.05 CPU)
17
18 11.1234s on wallclock (0.05 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.05 CPU)
19
20 01m:54.45s on wallclock (0.05 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.05 CPU)
21
22 18h:22m:54.45s on wallclock (0.05 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.05 CPU)
23
24 04d:18h:22m:54.45s on wallclock (0.05 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.05 CPU)
25
27 use Test2::Plugin::Times;
28
29 This is also useful at the command line for 1-time use:
30
31 $ perl -MTest2::Plugin::Times path/to/test.t
32
34 The source code repository for Test2-Suite can be found at
35 https://github.com/Test-More/Test2-Suite/.
36
38 Chad Granum <exodist@cpan.org>
39
41 Chad Granum <exodist@cpan.org>
42
44 Copyright 2018 Chad Granum <exodist@cpan.org>.
45
46 This program is free software; you can redistribute it and/or modify it
47 under the same terms as Perl itself.
48
49 See http://dev.perl.org/licenses/
50
51
52
53perl v5.28.1 2018-12-04 Test2::Plugin::Times(3)