IPC : added some bugs

This commit is contained in:
tth
2021-08-25 07:18:34 +02:00
parent e306830003
commit 97f9196db6
7 changed files with 163 additions and 6 deletions

9
code/dtime.c Normal file
View File

@@ -0,0 +1,9 @@
#include <stddef.h>
#include <sys/time.h>
double dtime(void)
{
struct timeval tv;
gettimeofday(&tv, NULL);
return (double)tv.tv_sec + ((double)tv.tv_usec)/1e6;
}