line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package POE::Event::Alarm; |
2
|
|
|
|
|
|
|
|
3
|
110
|
|
|
110
|
|
555
|
use base 'POE::Event'; |
|
110
|
|
|
|
|
220
|
|
|
110
|
|
|
|
|
8824
|
|
4
|
|
|
|
|
|
|
|
5
|
110
|
|
|
110
|
|
696
|
use strict; |
|
110
|
|
|
|
|
218
|
|
|
110
|
|
|
|
|
3603
|
|
6
|
110
|
|
|
110
|
|
651
|
use warnings; |
|
110
|
|
|
|
|
386
|
|
|
110
|
|
|
|
|
13501
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
BEGIN { |
9
|
110
|
|
|
110
|
|
327
|
my $i = 0; |
10
|
110
|
|
|
|
|
298
|
foreach my $attr (@POE::Event::_ELEMENTS, qw(CTIME ALARM_ID)) { |
11
|
880
|
|
|
|
|
29550
|
eval "sub $attr () { $i }"; |
12
|
880
|
|
|
|
|
29224
|
$i++; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my $i = 0; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub new { |
19
|
10
|
|
|
10
|
0
|
17
|
my $class = shift; |
20
|
10
|
|
|
|
|
64
|
my $self = $class->SUPER::new(@_); |
21
|
|
|
|
|
|
|
|
22
|
10
|
|
|
|
|
292
|
$self->[CTIME] = shift; |
23
|
10
|
|
|
|
|
23
|
$self->[ALARM_ID] = $i++; |
24
|
|
|
|
|
|
|
|
25
|
10
|
|
|
|
|
27
|
return $self; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub ctime { |
29
|
0
|
|
|
0
|
0
|
0
|
my $self = shift; |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
0
|
return $self->[CTIME]; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub alarm_id { |
35
|
12
|
|
|
12
|
0
|
26
|
my $self = shift; |
36
|
|
|
|
|
|
|
|
37
|
12
|
|
|
|
|
77
|
return $self->[ALARM_ID]; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub adjust_when { |
41
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
42
|
|
|
|
|
|
|
|
43
|
0
|
0
|
|
|
|
|
if (@_) { |
44
|
0
|
|
|
|
|
|
$self->[TIME] += shift; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
|
|
|
return $self->[TIME]; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub set_when { |
51
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
52
|
|
|
|
|
|
|
|
53
|
0
|
0
|
|
|
|
|
if (@_) { |
54
|
0
|
|
|
|
|
|
$self->[TIME] = shift; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
0
|
|
|
|
|
|
return $self->[TIME]; |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |