diff options
-rw-r--r-- | FICS/utils.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index 7916723..6f9075f 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -677,18 +677,19 @@ strgtime(time_t *clock) return strtime(stm); } -/* This is used only for relative timeing since it reports seconds since - * about 5:00pm on Feb 16, 1994 +/* + * This is used only for relative timing since it reports seconds + * since about 5:00 pm on Feb 16, 1994. */ -PUBLIC unsigned tenth_secs(void) +PUBLIC unsigned +tenth_secs(void) { - struct timeval tp; - struct timezone tzp; + struct timeval tp; + struct timezone tzp; + + gettimeofday(&tp, &tzp); - gettimeofday(&tp, &tzp); -/* .1 seconds since 1970 almost fills a 32 bit int! So lets subtract off - * the time right now */ - return ((tp.tv_sec - 331939277) * 10L) + (tp.tv_usec / 100000); + return ((tp.tv_sec - 331939277) * 10L) + (tp.tv_usec / 100000); } /* |