aboutsummaryrefslogtreecommitdiff
path: root/src/timers.h
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-04-06 06:08:45 -0400
committerB. Watson <urchlay@slackware.uk>2026-04-06 06:08:59 -0400
commita17902373dc3fd2f06f0796ed2621109cb4acdd3 (patch)
tree7c2bac0d8fca91b1916e72a79fef5a3b3520c6ad /src/timers.h
parente00d109f7997ea3c238677a28271ced8fa8f9d4e (diff)
downloadfujinet-chat-a17902373dc3fd2f06f0796ed2621109cb4acdd3.tar.gz
Precalculate timer intervals (in config segment; client gets them preset). 6780 bytes free.
Diffstat (limited to 'src/timers.h')
-rw-r--r--src/timers.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/timers.h b/src/timers.h
new file mode 100644
index 0000000..a3e41f8
--- /dev/null
+++ b/src/timers.h
@@ -0,0 +1,8 @@
+typedef struct {
+ char hz; /* 50 for PAL, 60 for NTSC */
+ char one_tenth_sec; /* 5 for PAL, 6 for NTSC */
+ unsigned int one_sec; /* 1 sec, "hz" times 60 */
+ unsigned int net_ind_time; /* 3.7 sec (just what The_Doctor__ ordered) */
+} timers_t;
+
+#define timers (*(timers_t *)(0xf0))