diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:34:53 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:34:53 +0100 |
commit | f2bf991ac5ef490aa72edfc5973e75f3bad9375a (patch) | |
tree | 771b366a8794272b194fc64e8c232190b92f907d /FICS | |
parent | a6e29d12b5dc8a1f453e5dd8bd794929912cecea (diff) |
Reformatted tenth_secs()
Diffstat (limited to 'FICS')
-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); } /* |