File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 188
188
"""
189
189
time_ns()::UInt64
190
190
191
- Get the time in nanoseconds relative to some arbitrary time in the past. The primary use is for measuring the elapsed time
192
- between two moments in time.
191
+ Get the time in nanoseconds relative to some machine-specific arbitrary time in the past.
192
+ The primary use is for measuring elapsed times during program execution. The return value is guaranteed to
193
+ be monotonic (mod 2⁶⁴) while the system is running, and is unaffected by clock drift or changes to local calendar time,
194
+ but it may change arbitrarily across system reboots or suspensions.
195
+
196
+ (Although the returned time is always in nanoseconds, the timing resolution is platform-dependent.)
193
197
"""
194
198
time_ns () = ccall (:jl_hrtime , UInt64, ())
195
199
You can’t perform that action at this time.
0 commit comments