mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
...
...
This commit is contained in:
parent
b7cda8969e
commit
8a98208a75
@ -1,12 +1,12 @@
|
|||||||
#include "pocketpy/pocketpy.h"
|
#include "pocketpy/pocketpy.h"
|
||||||
#include "pocketpy/interpreter/vm.h"
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
#define NANOS_PER_SEC 1000000000
|
#define NANOS_PER_SEC 1000000000
|
||||||
|
|
||||||
int64_t time_ns() {
|
int64_t time_ns() {
|
||||||
struct timespec tms;
|
struct timespec tms;
|
||||||
#if defined( __ANDROID__) || defined(__MINGW32__) || defined(__MINGW64__)
|
#if defined(__ANDROID__) || defined(__MINGW32__) || defined(__MINGW64__) || !defined(TIME_UTC)
|
||||||
clock_gettime(CLOCK_REALTIME, &tms);
|
clock_gettime(CLOCK_REALTIME, &tms);
|
||||||
#else
|
#else
|
||||||
/* The C11 way */
|
/* The C11 way */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user