Fun 0.41.5
The programming language that makes You have fun
Loading...
Searching...
No Matches
clock_mono_ms.c File Reference

Implements OP_CLOCK_MONO_MS to push monotonic clock in ms. More...

#include <stdint.h>
#include <time.h>
Include dependency graph for clock_mono_ms.c:

Go to the source code of this file.

Functions

 push_value (vm, make_int(ms))

Variables

case OP_CLOCK_MONO_MS
time_t s = time(NULL)
 ms = (int64_t)s * 1000
 break

Detailed Description

Implements OP_CLOCK_MONO_MS to push monotonic clock in ms.

Stack before: [] Stack after: [int ms]

Definition in file clock_mono_ms.c.

Function Documentation

◆ push_value()

push_value(vm,
make_int(ms) )

Variable Documentation

◆ break

break

Definition at line 36 of file clock_mono_ms.c.

◆ ms

ms = (int64_t)s * 1000

Definition at line 33 of file clock_mono_ms.c.

◆ OP_CLOCK_MONO_MS

case OP_CLOCK_MONO_MS

Definition at line 21 of file clock_mono_ms.c.

◆ s

time_t s = time(NULL)

Definition at line 32 of file clock_mono_ms.c.