Name

SPVM::Sys::Time::Tms - struct tms in C language

Usage

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);

Description

Sys::Time::Tms represents struct tms in C language.

See times(2) - Linux man page about struct tms in Linux.

Class Methods

new

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

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

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

Instance Methods

DESTROY

native method DESTROY : void ();

The destructor.

tms_utime

method tms_utime : long ()

Gets tms_utime.

my $tms_utime = $tv->tms_utime;

set_tms_utime

method set_tms_utime : void ($tms_utime : long)

Sets tms_utime.

$tv->set_tms_utime(12);

tms_stime

method tms_stime : long ()

Gets tms_stime.

my $tms_stime = $tv->tms_stime;

set_tms_stime

method set_tms_stime : void ($tms_stime : long)

Sets tms_stime.

$tv->set_tms_stime(12);

tms_cutime

method tms_cutime : long ()

Gets tms_cutime.

my $tms_cutime = $tv->tms_cutime;

set_tms_cutime

method set_tms_cutime : void ($tms_cutime : long)

Sets tms_cutime.

$tv->set_tms_cutime(12);

tms_cstime

method tms_cstime : long ()

Gets tms_cstime.

my $tms_cstime = $tv->tms_cstime;

set_tms_cstime

method set_tms_cstime : void ($tms_cstime : long)

Sets tms_cstime.

$tv->set_tms_cstime(12);