SPVM::Sys::Time::Timeval - struct timeval in C language
use Sys::Time::Timeval; my $tv = Sys::Time::Timeval->new; my $tv_sec = $tv->tv_sec; $tv->set_tv_sec(12); my $tv_usec = $tv->tv_usec; $tv->set_tv_usec(34);
Sys::Time::Timeval represents struct timeval in C language.
Sys::Time::Timeval
struct timeval
C language
See gettimeofday(2) - Linux man page about struct timeval in Linux.
static method new : Sys::Time::Timeval ()
Creates a new Sys::Time::Timeval object.
my $tv = Sys::Time::Timeval->new;
method tv_sec : long ()
Gets tv_sec.
tv_sec
my $tv_sec = $tv->tv_sec;
method set_tv_sec : void ($tv_sec : long)
Sets tv_sec.
$tv->set_tv_sec(12);
method tv_usec : long ()
Gets tv_usec.
tv_usec
my $tv_usec = $tv->tv_usec;
method set_tv_usec : void ($tv_usec : long)
Sets tv_usec.
$tv->set_tv_usec(34);
To install SPVM::Sys, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::Sys
CPAN shell
perl -MCPAN -e shell install SPVM::Sys
For more information on module installation, please visit the detailed CPAN module installation guide.