| 1 |
package wasip1 |
| 2 |
|
| 3 |
const ( |
| 4 |
ClockResGetName = "clock_res_get" |
| 5 |
ClockTimeGetName = "clock_time_get" |
| 6 |
) |
| 7 |
|
| 8 |
// https://github.com/WebAssembly/WASI/blob/snapshot-01/phases/snapshot/docs.md#-clockid-enumu32 |
| 9 |
const ( |
| 10 |
// ClockIDRealtime is the name ID named "realtime" like sys.Walltime |
| 11 |
ClockIDRealtime = iota |
| 12 |
// ClockIDMonotonic is the name ID named "monotonic" like sys.Nanotime |
| 13 |
ClockIDMonotonic |
| 14 |
// Note: clockIDProcessCputime and clockIDThreadCputime were removed by |
| 15 |
// WASI maintainers: https://github.com/WebAssembly/wasi-libc/pull/294 |
| 16 |
) |