Sys/Time/Itimerval.pm untested

filter: Statementstmt n/a Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a SCAR -
1 package SPVM::Sys::Time::Itimerval;
2  
3 1;
4  
5 =head1 Name
6  
7 SPVM::Sys::Time::Itimerval - struct itimerval in the C language
8  
9 =head1 Usage
10  
11 use Sys::Time::Itimerval;
12
13 my $tv = Sys::Time::Itimerval->new;
14
15 my $it_interval = $tv->it_interval;
16 $tv->set_it_interval(12);
17
18 my $it_value = $tv->it_value;
19 $tv->set_it_value(34);
20  
21 =head1 Description
22  
23 The Sys::Time::Itimerval class represents L<struct itimerval|https://linux.die.net/man/2/setitimer> in the C language.
24  
25 =head1 Class Methods
26  
27 =head2 new
28  
29 C<static method new : L<Sys::Time::Itimerval|SPVM::Sys::Time::Itimerval> ();>
30  
31 Creates a new L<Sys::Time::Itimerval|SPVM::Sys::Time::Itimerval> object.
32  
33 =head1 Instance Methods
34  
35 =head2 it_interval
36  
37 C<method it_interval : L<Sys::Time::Timeval|SPVM::Sys::Time::Timeval> ();>
38  
39 Copies C<it_interval> and creates a L<Sys::Time::Timeval|SPVM::Sys::Time::Timeval> object whose pointer is set to the copied value address, and returns it.
40  
41 =head2 set_it_interval
42  
43 C<method set_it_interval : void ($it_interval : L<Sys::Time::Timeval|SPVM::Sys::Time::Timeval>);>
44  
45 Sets C<it_interval>.
46  
47 =head2 it_value
48
49 C<method it_value : L<Sys::Time::Timeval|SPVM::Sys::Time::Timeval> ();>
50  
51 Copies C<it_value> and creates a L<Sys::Time::Timeval|SPVM::Sys::Time::Timeval> object whose pointer is set to the copied value address, and returns it.
52  
53 =head2 set_it_value
54  
55 C<method set_it_value : void ($it_value : L<Sys::Time::Timeval|SPVM::Sys::Time::Timeval>);>
56  
57 Sets C<it_value>.
58  
59 =head1 See Also
60  
61 =over 2
62  
63 =item * L<Sys|SPVM::Sys>
64  
65 =back
66  
67 =head1 Copyright & License
68  
69 Copyright (c) 2023 Yuki Kimoto
70  
71 MIT License
72