Name

SPVM::Sys::Time::Itimerval - struct timeval in C language

Usage

use Sys::Time::Itimerval;

my $tv = Sys::Time::Itimerval->new;

my $it_interval = $tv->copy_it_interval;
$tv->set_it_interval(12);

my $it_value = $tv->copy_it_value;
$tv->set_it_value(34);

Description

Sys::Time::Itimerval represents struct timeval in C language.

See gettimeofday(2) - Linux man page about struct timeval in Linux.

Class Methods

new

static method new : Sys::Time::Itimerval ()

Creates a new Sys::Time::Itimerval object.

my $tv = Sys::Time::Itimerval->new;

Instance Methods

copy_it_interval

method copy_it_interval : Sys::Time::Timeval ()

Copies it_interval.

my $it_interval = $tv->copy_it_interval;

set_it_interval

method set_it_interval : void ($it_interval : Sys::Time::Timeval)

Sets it_interval.

$tv->set_it_interval(12);

copy_it_value

method copy_it_value : Sys::Time::Timeval ()

Copies it_value.

my $it_value = $tv->copy_it_value;

set_it_value

method set_it_value : void ($it_value : Sys::Time::Timeval)

Sets it_value.

$tv->set_it_value(34);