common: remove commented out "less portable" timing code
Precise timing is not important for the job vis does. Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
6ea82e47b0
commit
37a9935643
|
|
@ -184,23 +184,8 @@ I_FloatTime(void)
|
|||
time_t t;
|
||||
|
||||
time(&t);
|
||||
|
||||
return t;
|
||||
|
||||
#if 0
|
||||
/* more precise, less portable */
|
||||
struct timeval tp;
|
||||
struct timezone tzp;
|
||||
static int secbase;
|
||||
|
||||
gettimeofday(&tp, &tzp);
|
||||
|
||||
if (!secbase) {
|
||||
secbase = tp.tv_sec;
|
||||
return tp.tv_usec / 1000000.0;
|
||||
}
|
||||
|
||||
return (tp.tv_sec - secbase) + tp.tv_usec / 1000000.0;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in New Issue