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:
This graph shows which files directly or indirectly include this file:

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.

Example:

  • OP_CLOCK_MONO_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 38 of file clock_mono_ms.c.

◆ ms

ms = (int64_t)s * 1000

Definition at line 35 of file clock_mono_ms.c.

◆ OP_CLOCK_MONO_MS

case OP_CLOCK_MONO_MS

Definition at line 23 of file clock_mono_ms.c.

◆ s

time_t s = time(NULL)

Definition at line 34 of file clock_mono_ms.c.