49#ifdef HAVE_GETTIMEOFDAY
67#ifdef CLOCKS_PER_SECOND
68#define CLOCKS_PER_SEC CLOCKS_PER_SECOND
70#define CLOCKS_PER_SEC 1000000
74#define N_USEC_PER_SEC 1000000L
99#ifdef HAVE_GETTIMEOFDAY
115 static bool first =
TRUE;
118 log_test(
"clock() returned -1, ignoring timer");
124#ifdef HAVE_GETTIMEOFDAY
131 static bool first =
TRUE;
134 log_test(
"gettimeofday() returned -1, ignoring timer");
139#elif !defined HAVE_FTIME
146 static bool first =
TRUE;
149 log_test(
"time() returned -1, ignoring timer");
194 if (
t->name !=
NULL) {
213 if (
t->name !=
NULL) {
228 if (
t->name !=
NULL) {
282#ifdef HAVE_GETTIMEOFDAY
289#elif defined HAVE_FTIME
293 if (
t->start.t == (
time_t) -1) {
329#ifdef HAVE_GETTIMEOFDAY
349#elif defined HAVE_FTIME
407#ifdef HAVE_GETTIMEOFDAY
440 + (
now.millitm - t->
start.tp.millitm);
#define fc_assert_ret(condition)
#define fc_assert_ret_val(condition, val)
#define log_error(message,...)
void fc_usleep(unsigned long usec)
static void report_time_failed(struct timer *t)
void timer_usleep_since_start(struct timer *t, long usec)
static void report_clock_failed(struct timer *t)
void timer_clear(struct timer *t)
bool timer_in_use(struct timer *t)
void timer_destroy(struct timer *t)
static char * timer_name(struct timer *t)
void timer_start(struct timer *t)
void timer_stop(struct timer *t)
struct timer * timer_new(enum timer_timetype type, enum timer_use use, const char *name)
double timer_read_seconds(struct timer *t)
struct timer * timer_renew(struct timer *t, enum timer_timetype type, enum timer_use use, const char *name)