std::time
namespace TimeRecords
record DurationMembers
secs: u64nanos: u32static fromMicros(micros: u64): Durationstatic fromMillis(millis: u64): Durationstatic fromNanos(nanos: u64): Durationstatic fromSeconds(secs: u64): DurationcheckedAdd(&self, other: Duration): Option<Duration>checkedSub(&self, other: Duration): Option<Duration>compare(&self, other: &Duration): i32wholeMicros(&self): u64wholeMillis(&self): u64wholeNanos(&self): u64wholeSeconds(&self): u64record MonotonicInstantMembers
secs: u64nanos: u32static now(): Result<MonotonicInstant, IoError>checkedDurationSince(&self, other: MonotonicInstant): Option<Duration>compare(&self, other: &MonotonicInstant): i32elapsed(&self): Result<Duration, IoError>record SystemTimeMembers
secs: i64nanos: u32static now(): Result<SystemTime, IoError>checkedAddDuration(&self, duration: Duration): Option<SystemTime>checkedDurationSince(&self, other: SystemTime): Option<Duration>checkedSubDuration(&self, duration: Duration): Option<SystemTime>compare(&self, other: &SystemTime): i32durationSinceUnixEpoch(&self): Result<Duration, TimeError>record TimeErrorMembers
kind: TimeErrorKindio: Option<IoError>static beforeEpoch(): TimeErrorstatic negativeDifference(): TimeErrorstatic overflow(): TimeErrorerrorKind(&self): TimeErrorKindioError(&self): Option<IoError>Enums
enum TimeErrorKindMembers
OVERFLOWNEGATIVE_DIFFERENCEBEFORE_EPOCHFunctions
function checkedAddI64U64(base: i64, delta: u64): Option<i64>function checkedSubI64U64(base: i64, delta: u64): Option<i64>function checkedUnsignedDurationBetween(leftSecs: u64, leftNanos: u32, rightSecs: u64, rightNanos: u32): Option<Duration>function compareUnsignedParts(leftSecs: u64, leftNanos: u32, rightSecs: u64, rightNanos: u32): i32function negativeMagnitude(value: i64): u64function readClock(clockId: i32): Result<Timespec, IoError>function signedDifferenceToUnsigned(left: i64, right: i64): u64Constants
const MICROS_PER_SECOND: u64const MILLIS_PER_SECOND: u64const NANOS_PER_MICRO: u64const NANOS_PER_MILLI: u64const NANOS_PER_SECOND_U32: u32const NANOS_PER_SECOND_U64: u64