SPVM::Sys::Time::Timespec - struct timespec in C language
use Sys::Time::Timespec; my $tv = Sys::Time::Timespec->new; my $tv_sec = $tv->tv_sec; $tv->set_tv_sec(12); my $tv_nsec = $tv->tv_nsec; $tv->set_tv_nsec(34);
Sys::Time::Timespec represents struct timespec in C language.
Sys::Time::Timespec
struct timespec
C language
See gettimeofday(2) - Linux man page about struct timespec in Linux.
static method new : Sys::Time::Timespec ()
Creates a new Sys::Time::Timespec object.
my $tv = Sys::Time::Timespec->new;
native method DESTROY : void ();
The destructor.
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_nsec : long ()
Gets tv_nsec.
tv_nsec
my $tv_nsec = $tv->tv_nsec;
method set_tv_nsec : void ($tv_nsec : long)
Sets tv_nsec.
$tv->set_tv_nsec(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.