File Coverage

blib/lib/Time/SZTime.pm
Criterion Covered Total %
statement 9 19 47.3
branch n/a
condition n/a
subroutine 3 6 50.0
pod 0 3 0.0
total 12 28 42.8


line stmt bran cond sub pod time code
1             # $Id: SZTime.pm,v 1.7 2002/08/14 17:15:58 Vutral Exp $
2             package Time::SZTime;
3              
4             ## See POD after __END__
5 1     1   28965 use strict;
  1         3  
  1         55  
6 1     1   1665 use Time::HiRes;
  1         2221  
  1         7  
7             our ($VERSION, @ISA, @EXPORT);
8             # AU Code: use CPAN::Shell;
9              
10 1     1   154 use Exporter ();
  1         9  
  1         182  
11              
12             $VERSION = "0.14";
13              
14             @ISA = qw(Exporter);
15             @EXPORT = qw(&SZTime);
16              
17             # AU Code: my $Object = CPAN::Shell->expand('Module','Time::SZTime'); $Object->install;
18              
19             sub SZTime {
20 0     0 0   my $time = Time::HiRes::time;
21 0           $time *= 1000; $time = $time - 504934930483.2;
  0            
22 0           $time = int($time);
23 0           return $time;
24             }
25              
26             sub SZTime::log {
27 0     0 0   my $time = Time::SZTime::SZTime();
28 0           return log($time);
29             }
30              
31             sub SZTime::log10 {
32 0     0 0   my $time = Time::SZTime::SZTime();
33 0           $time = log($time)/log(10);
34 0           return $time;
35             }
36              
37             1;
38              
39             __END__