Skip to content

Commit

Permalink
Add reference to time_ns in time (#57142)
Browse files Browse the repository at this point in the history
I couldn't find `time_ns` when I was looking for it, nice to make clear
the "monotonic" clock is also available in Base.
  • Loading branch information
nlw0 authored Feb 4, 2025
1 parent 79ce168 commit a52de83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/libc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ time(tm::TmStruct) = Float64(ccall(:mktime, Int, (Ref{TmStruct},), tm))
time() -> Float64
Get the system time in seconds since the epoch, with fairly high (typically, microsecond) resolution.
See also [`time_ns`](@ref).
"""
time() = ccall(:jl_clock_now, Float64, ())

Expand Down

0 comments on commit a52de83

Please sign in to comment.