misc_time.c: make timediff always availabe when timeb.h is found
This commit is contained in:
parent
9552449c87
commit
a808ce8d42
|
|
@ -65,8 +65,6 @@ datestring(void)
|
|||
|
||||
/* return time interval in seconds and milliseconds */
|
||||
|
||||
#ifndef HAVE_GETRUSAGE
|
||||
#ifndef HAVE_TIMES
|
||||
#ifdef HAVE_FTIME
|
||||
|
||||
struct timeb timebegin;
|
||||
|
|
@ -84,8 +82,6 @@ void timediff(struct timeb *now, struct timeb *begin, int *sec, int *msec)
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -9,16 +9,12 @@
|
|||
char * datestring(void);
|
||||
double seconds(void);
|
||||
|
||||
#ifndef HAVE_GETRUSAGE
|
||||
#ifndef HAVE_TIMES
|
||||
#ifdef HAVE_FTIME
|
||||
|
||||
extern struct timeb timebegin;
|
||||
|
||||
void timediff(struct timeb *, struct timeb *, int *, int *);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue