wasm
This commit is contained in:
parent
47b135aca0
commit
f90881b03d
9824 changed files with 1706556 additions and 114 deletions
|
|
@ -0,0 +1,37 @@
|
|||
#ifndef __wasilibc___header_time_h
|
||||
#define __wasilibc___header_time_h
|
||||
|
||||
#define __need_size_t
|
||||
#define __need_NULL
|
||||
#include <stddef.h>
|
||||
|
||||
#include <__typedef_time_t.h>
|
||||
#include <__struct_timespec.h>
|
||||
#include <__struct_tm.h>
|
||||
#include <__typedef_clockid_t.h>
|
||||
|
||||
#ifdef __wasilibc_use_wasip2
|
||||
#include <wasi/wasip2.h>
|
||||
#else
|
||||
#include <wasi/api.h>
|
||||
#endif
|
||||
|
||||
#define TIMER_ABSTIME __WASI_SUBCLOCKFLAGS_SUBSCRIPTION_CLOCK_ABSTIME
|
||||
|
||||
extern const struct __clockid _CLOCK_MONOTONIC;
|
||||
#define CLOCK_MONOTONIC (&_CLOCK_MONOTONIC)
|
||||
extern const struct __clockid _CLOCK_REALTIME;
|
||||
#define CLOCK_REALTIME (&_CLOCK_REALTIME)
|
||||
|
||||
/*
|
||||
* TIME_UTC is the only standardized time base value.
|
||||
*/
|
||||
#define TIME_UTC 1
|
||||
|
||||
/*
|
||||
* Note that XSI specifies CLOCKS_PER_SEC to be 1000000, rather than
|
||||
* 1000000000; the clock API is providing more precision than XSI specifies.
|
||||
*/
|
||||
#define CLOCKS_PER_SEC ((clock_t)1000000000)
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue