From 06b2804c2790243cdd049dfd50ff4197fa59926f Mon Sep 17 00:00:00 2001 From: Chris Peterson Date: Sat, 11 Aug 2012 12:12:40 -0700 Subject: [PATCH] std: Update timespec comments to say "nanoseconds" --- src/libstd/time.rs | 4 ++-- 1 file 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;