Implement wasi clock_time/clock_res get (#2637)
Add os_clock_res_get and os_clock_time_get in platform_api_extension.h, and implement them in posix like platforms and windows platform.
This commit is contained in:
@ -364,6 +364,7 @@ CSRCS += nuttx_platform.c \
|
||||
posix_blocking_op.c \
|
||||
posix_thread.c \
|
||||
posix_time.c \
|
||||
posix_clock.c \
|
||||
posix_sleep.c \
|
||||
mem_alloc.c \
|
||||
ems_kfc.c \
|
||||
|
||||
@ -153,3 +153,9 @@ target_link_libraries (libiwasm ${LLVM_AVAILABLE_LIBS} ${UV_A_LIBS})
|
||||
if (MINGW)
|
||||
target_link_libraries (libiwasm ws2_32)
|
||||
endif ()
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(libiwasm ntdll)
|
||||
|
||||
target_link_libraries(iwasm ntdll)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user