History log of /llvm-project/libc/src/time/time.cpp (Results 1 – 3 of 3)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-21-init, llvmorg-19.1.7
# f9c2377f 08-Jan-2025 Michael Jones <michaelrj@google.com>

[libc][NFC] Cleanup time.h (#122027)

While working on strftime I noticed some constants were being defined in
unexpected places. One thing led to another, and I ended up doing a
major cleanup of the

[libc][NFC] Cleanup time.h (#122027)

While working on strftime I noticed some constants were being defined in
unexpected places. One thing led to another, and I ended up doing a
major cleanup of the time functions.

What's included:
All uses of <time.h> in /src and /test removed (except for LibcTest.cpp)
The various time constants have been moved to time_constants.h, and the
`time_constants` namespace.
struct tm gets its own type indirection header now.

show more ...


Revision tags: llvmorg-19.1.6
# e6cf5d28 05-Dec-2024 Schrodinger ZHU Yifan <yifanzhu@rochester.edu>

Reapply "[libc][windows] start time API implementation (#117775)" (#118886)


# 0adff0af 05-Dec-2024 Schrodinger ZHU Yifan <yifanzhu@rochester.edu>

[libc][windows] start time API implementation (#117775)

Add a `clock_gettime` emulation layer and use it to implement the `time`
entrypoint.

For windows, the monotonic clock is emulated using `QPC`

[libc][windows] start time API implementation (#117775)

Add a `clock_gettime` emulation layer and use it to implement the `time`
entrypoint.

For windows, the monotonic clock is emulated using `QPC`.
The realtime clock is emulated using `GetSystemTimePreciseAsFileTime`.

show more ...