#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
◆ CLOCK_MONOTONIC
| #define CLOCK_MONOTONIC 1 |
◆ CLOCK_PROCESS_CPUTIME_ID
| #define CLOCK_PROCESS_CPUTIME_ID 2 |
◆ CLOCK_REALTIME
◆ CLOCK_THREAD_CPUTIME_ID
| #define CLOCK_THREAD_CPUTIME_ID 3 |
◆ CLOCKS_PER_SEC
| #define CLOCKS_PER_SEC 1000L |
time.h shim for the QuickJS port on XenevaOS.
XEClib's real time.h skips struct tags (typedef-only), lacks tm_gmtoff / tm_zone, and declares gettimeofday as (timeval*). quickjs.c needs classic <time.h> interfaces, so the QuickJS port build resolves <time.h> to this header. localtime/gmtime are implemented in port/port.c; the rest stay XEClib's.
◆ clock_t
◆ time_t
◆ timeval
◆ clock()
◆ ctime()
| char * ctime |
( |
const time_t * |
t | ) |
|
◆ difftime()
◆ gettimeofday()
| int gettimeofday |
( |
struct timeval * |
tv, |
|
|
void * |
tz |
|
) |
| |
◆ gmtime()
◆ gmtime_r()
| struct tm * gmtime_r |
( |
const time_t * |
t, |
|
|
struct tm * |
out |
|
) |
| |
◆ localtime()
| struct tm * localtime |
( |
const time_t * |
t | ) |
|
◆ localtime_r()
| struct tm * localtime_r |
( |
const time_t * |
t, |
|
|
struct tm * |
out |
|
) |
| |
◆ mktime()
◆ nanosleep()
◆ time()