Skip to content

Commit cdf2f46

Browse files
nlw0KristofferC
authored andcommitted
Add reference to time_ns in time (#57142)
I couldn't find `time_ns` when I was looking for it, nice to make clear the "monotonic" clock is also available in Base. (cherry picked from commit a52de83)
1 parent 0c1e800 commit cdf2f46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/libc.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ time(tm::TmStruct) = Float64(ccall(:mktime, Int, (Ref{TmStruct},), tm))
288288
time() -> Float64
289289
290290
Get the system time in seconds since the epoch, with fairly high (typically, microsecond) resolution.
291+
292+
See also [`time_ns`](@ref).
291293
"""
292294
time() = ccall(:jl_clock_now, Float64, ())
293295

0 commit comments

Comments
 (0)