Struct linux_api::time::timespec [] [src]

#[repr(C)]
pub struct timespec { pub tv_sec: time_t, pub tv_nsec: c_long, }

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

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

Fields

The number of seconds contained in this timespec

The number of nanoseconds contained in this timespec

Methods

impl timespec
[src]

Creates a new timespec with both values defaulting to zero

Creates a new timespec from the specified number of seconds

Gets a representation of this timespec as a number of milliseconds

Gets a representation of this timespec as a number of seconds

Clears this timespec, setting each value to zero

Trait Implementations

impl Debug for timespec
[src]

Formats the value using the given formatter.

impl Clone for timespec
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for timespec
[src]