Struct nix::sys::time::TimeVal [] [src]

pub struct TimeVal {
    pub tv_sec: time_t,
    pub tv_usec: suseconds_t,
}

Fields

tv_sec
tv_usec

Methods

impl TimeVal

fn zero() -> TimeVal

fn hours(hours: i64) -> TimeVal

fn minutes(minutes: i64) -> TimeVal

fn seconds(seconds: i64) -> TimeVal

fn milliseconds(milliseconds: i64) -> TimeVal

fn microseconds(microseconds: i64) -> TimeVal

Makes a new TimeVal with given number of microseconds.

fn num_hours(&self) -> i64

fn num_minutes(&self) -> i64

fn num_seconds(&self) -> i64

fn num_milliseconds(&self) -> i64

fn num_microseconds(&self) -> i64

Trait Implementations

impl Neg for TimeVal

type Output = TimeVal

fn neg(self) -> TimeVal

impl Add for TimeVal

type Output = TimeVal

fn add(self, rhs: TimeVal) -> TimeVal

impl Sub for TimeVal

type Output = TimeVal

fn sub(self, rhs: TimeVal) -> TimeVal

impl Mul<i32> for TimeVal

type Output = TimeVal

fn mul(self, rhs: i32) -> TimeVal

impl Div<i32> for TimeVal

type Output = TimeVal

fn div(self, rhs: i32) -> TimeVal

impl Display for TimeVal

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for TimeVal

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Ord for TimeVal

fn cmp(&self, __arg_0: &TimeVal) -> Ordering

impl PartialOrd for TimeVal

fn partial_cmp(&self, __arg_0: &TimeVal) -> Option<Ordering>

fn lt(&self, __arg_0: &TimeVal) -> bool

fn le(&self, __arg_0: &TimeVal) -> bool

fn gt(&self, __arg_0: &TimeVal) -> bool

fn ge(&self, __arg_0: &TimeVal) -> bool

impl Eq for TimeVal

impl PartialEq for TimeVal

fn eq(&self, __arg_0: &TimeVal) -> bool

fn ne(&self, __arg_0: &TimeVal) -> bool

impl Copy for TimeVal

impl Clone for TimeVal

fn clone(&self) -> TimeVal

fn clone_from(&mut self, source: &Self)