SPVM::Sys::Time::Tms - struct tms in C language
use Sys::Time::Tms; my $tv = Sys::Time::Tms->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::Tms represents struct tms in C language.
Sys::Time::Tms
struct tms
C language
See times(2) - Linux man page about struct tms in Linux.
static method new : Sys::Time::Tms ()
Creates a new Sys::Time::Tms object.
my $tv = Sys::Time::Tms->new;
native method DESTROY : void ();
The destructor.
method tms_utime : long ()
Gets tms_utime.
tms_utime
my $tms_utime = $tv->tms_utime;
method set_tms_utime : void ($tms_utime : long)
Sets tms_utime.
$tv->set_tms_utime(12);
method tms_stime : long ()
Gets tms_stime.
tms_stime
my $tms_stime = $tv->tms_stime;
method set_tms_stime : void ($tms_stime : long)
Sets tms_stime.
$tv->set_tms_stime(12);
method tms_cutime : long ()
Gets tms_cutime.
tms_cutime
my $tms_cutime = $tv->tms_cutime;
method set_tms_cutime : void ($tms_cutime : long)
Sets tms_cutime.
$tv->set_tms_cutime(12);
method tms_cstime : long ()
Gets tms_cstime.
tms_cstime
my $tms_cstime = $tv->tms_cstime;
method set_tms_cstime : void ($tms_cstime : long)
Sets tms_cstime.
$tv->set_tms_cstime(12);
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.