diff options
| author | Chris Peterson <cpeterson@mozilla.com> | 2012-08-11 12:12:40 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-11 13:02:08 -0700 |
| commit | 06b2804c2790243cdd049dfd50ff4197fa59926f (patch) | |
| tree | e254316a555b81780cab7630c9db3dcdec6797ee /src/libstd/time.rs | |
| parent | c7bdee81e1e35a3ba2b2dbf7d55f699542e8d474 (diff) | |
| download | rust-06b2804c2790243cdd049dfd50ff4197fa59926f.tar.gz rust-06b2804c2790243cdd049dfd50ff4197fa59926f.zip | |
std: Update timespec comments to say "nanoseconds"
Diffstat (limited to 'src/libstd/time.rs')
| -rw-r--r-- | src/libstd/time.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/time.rs b/src/libstd/time.rs index ee8ca6c28da..3f6602ffcda 100644 --- a/src/libstd/time.rs +++ b/src/libstd/time.rs @@ -29,12 +29,12 @@ extern mod rustrt { 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; |
