Skip to content

Commit 67001d6

Browse files
authored
update docstring for time_ns (#54726)
See discussion in #54696 (comment).
1 parent fc2cafc commit 67001d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/Base.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ end
152152
"""
153153
time_ns() -> UInt64
154154
155-
Get the time in nanoseconds. The time corresponding to 0 is undefined, and wraps every 585 years.
155+
Get the time in nanoseconds relative to some arbitrary time in the past. The primary use is for measuring the elapsed time
156+
between two moments in time.
156157
"""
157158
time_ns() = ccall(:jl_hrtime, UInt64, ())
158159

0 commit comments

Comments
 (0)