Init. Map does not function and only working on backend at the moment.

This commit is contained in:
eetnaviation
2024-03-15 22:15:20 +02:00
commit d521b9db0c
1488 changed files with 252767 additions and 0 deletions

25
node_modules/sleep/sleep_posix.cc generated vendored Normal file
View File

@ -0,0 +1,25 @@
#include "sleep.h"
#if ( _POSIX_C_SOURCE >= 200112L ) && ( !NAN_HAS_CPLUSPLUS_11 )
#include <unistd.h>
#include <sys/time.h>
void node_usleep(uint32_t usec) {
useconds_t done;
struct timeval start, end;
while (usec > 0) {
gettimeofday(&start, NULL);
usleep(usec);
gettimeofday(&end, NULL);
done = (end.tv_sec - start.tv_sec) * 1000000 + (end.tv_usec - start.tv_usec);
if (done > usec) {
usec = 0;
} else {
usec -= done;
}
}
}
#endif