diff options
| author | Chris Peterson <cpeterson@mozilla.com> | 2012-02-18 01:39:42 -0800 |
|---|---|---|
| committer | Chris Peterson <cpeterson@mozilla.com> | 2012-02-18 01:39:42 -0800 |
| commit | 3d202d7eaebd97e2b98a6c6021dd2bb763356d80 (patch) | |
| tree | e29cf58c867a59d3c110c81f2167ea5df22cbfc5 /src/libstd | |
| parent | b73bc3085896c90f6215d070b24ac80bf02cee6a (diff) | |
| download | rust-3d202d7eaebd97e2b98a6c6021dd2bb763356d80.tar.gz rust-3d202d7eaebd97e2b98a6c6021dd2bb763356d80.zip | |
rt: rename nano_time() builtin to match time::precise_time_ns()
Diffstat (limited to 'src/libstd')
| -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 ba2d6da4432..aaf94657a8b 100644 --- a/src/libstd/time.rs +++ b/src/libstd/time.rs @@ -5,7 +5,7 @@ Module: time #[abi = "cdecl"] native mod rustrt { fn get_time(&sec: u32, &usec: u32); - fn nano_time(&ns: u64); + fn precise_time_ns(&ns: u64); } /* @@ -34,7 +34,7 @@ Function: precise_time_ns Returns the current value of a high-resolution performance counter in nanoseconds since an unspecified epoch. */ -fn precise_time_ns() -> u64 { let ns = 0u64; rustrt::nano_time(ns); ret ns; } +fn precise_time_ns() -> u64 { let ns = 0u64; rustrt::precise_time_ns(ns); ns } /* Function: precise_time_s |
