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->it_interval;
$tv->set_it_interval(12);

my $it_value = $tv->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

it_interval

method it_interval : Sys::Time::Timeval ()

Copies it_interval.

my $it_interval = $tv->it_interval;

set_it_interval

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

Sets it_interval.

$tv->set_it_interval(12);

it_value

method it_value : Sys::Time::Timeval ()

Copies it_value.

my $it_value = $tv->it_value;

set_it_value

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

Sets it_value.

$tv->set_it_value(34);

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License