mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-02 00:07:42 +03:00
std: Update timespec comments to say "nanoseconds"
This commit is contained in:
committed by
Brian Anderson
parent
c7bdee81e1
commit
06b2804c27
+2
-2
@@ -29,12 +29,12 @@
|
||||
fn rust_mktime(&&tm: tm, &sec: i64);
|
||||
}
|
||||
|
||||
/// A record specifying a time value in seconds and microseconds.
|
||||
/// A record specifying a time value in seconds and nanoseconds.
|
||||
type timespec = {sec: i64, nsec: i32};
|
||||
|
||||
/**
|
||||
* Returns the current time as a `timespec` containing the seconds and
|
||||
* microseconds since 1970-01-01T00:00:00Z.
|
||||
* nanoseconds since 1970-01-01T00:00:00Z.
|
||||
*/
|
||||
fn get_time() -> timespec {
|
||||
let mut sec = 0i64;
|
||||
|
||||
Reference in New Issue
Block a user