Struct linux_api::time::timeval [] [src]

#[repr(C)]
pub struct timeval { pub tv_sec: time_t, pub tv_usec: suseconds_t, }

A structure that contains the number of seconds and microseconds since an epoch.

If in doubt, assume we're talking about the UNIX epoch.

Fields

The number of seconds contained in this timeval

The number of microseconds contained in this timeval

Methods

impl timeval
[src]

Creates a new timeval with both values defaulting to zero

Creates a new timeval from the specified number of seconds

Gets a representation of this timeval as a number of milliseconds

Gets a representation of this timeval as a number of seconds

Clears this timeval, setting each value to zero

Trait Implementations

impl Debug for timeval
[src]

Formats the value using the given formatter.

impl Clone for timeval
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for timeval
[src]