MT#56493 move now_double() to recaux.h

Change-Id: I672dfb3d05c5a4685aae794556b456ca28b990c8
pull/1611/head
Richard Fuchs 3 years ago
parent 87ea144935
commit e9568c8e31

@ -8,6 +8,7 @@
#include "main.h" #include "main.h"
#include "log.h" #include "log.h"
#include "tag.h" #include "tag.h"
#include "recaux.h"
/* /*
@ -249,12 +250,6 @@ err:
} }
static double now_double(void) {
struct timeval tv;
gettimeofday(&tv, NULL);
return tv.tv_sec + tv.tv_usec / 1000000.0;
}
static void db_do_call_id(metafile_t *mf) { static void db_do_call_id(metafile_t *mf) {
if (mf->db_id > 0) if (mf->db_id > 0)
return; return;

@ -6,4 +6,16 @@ extern __thread int __sscanf_hack_var;
#define sscanf_match(str, format, ...) __sscanf_match(str, format "%n", ##__VA_ARGS__, &__sscanf_hack_var) #define sscanf_match(str, format, ...) __sscanf_match(str, format "%n", ##__VA_ARGS__, &__sscanf_hack_var)
int __sscanf_match(const char *str, const char *fmt, ...) __attribute__ ((__format__ (__scanf__, 2, 3))); int __sscanf_match(const char *str, const char *fmt, ...) __attribute__ ((__format__ (__scanf__, 2, 3)));
#include <time.h>
#include <sys/time.h>
#include "compat.h"
INLINE double now_double(void) {
struct timeval tv;
gettimeofday(&tv, NULL);
return tv.tv_sec + tv.tv_usec / 1000000.0;
}
#endif #endif

Loading…
Cancel
Save