summaryrefslogtreecommitdiff
path: root/vendor/github.com/tetratelabs/wazero/internal/wasip1/clock.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/tetratelabs/wazero/internal/wasip1/clock.go')
-rw-r--r--vendor/github.com/tetratelabs/wazero/internal/wasip1/clock.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/tetratelabs/wazero/internal/wasip1/clock.go b/vendor/github.com/tetratelabs/wazero/internal/wasip1/clock.go
new file mode 100644
index 000000000..1d1b8c12d
--- /dev/null
+++ b/vendor/github.com/tetratelabs/wazero/internal/wasip1/clock.go
@@ -0,0 +1,16 @@
+package wasip1
+
+const (
+ ClockResGetName = "clock_res_get"
+ ClockTimeGetName = "clock_time_get"
+)
+
+// https://github.com/WebAssembly/WASI/blob/snapshot-01/phases/snapshot/docs.md#-clockid-enumu32
+const (
+ // ClockIDRealtime is the name ID named "realtime" like sys.Walltime
+ ClockIDRealtime = iota
+ // ClockIDMonotonic is the name ID named "monotonic" like sys.Nanotime
+ ClockIDMonotonic
+ // Note: clockIDProcessCputime and clockIDThreadCputime were removed by
+ // WASI maintainers: https://github.com/WebAssembly/wasi-libc/pull/294
+)