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:
Kevin Shanahan 2013-02-07 19:36:13 +10:30
parent 6ea82e47b0
commit 37a9935643
1 changed files with 1 additions and 16 deletions

View File

@ -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