diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-04-06 06:08:45 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-04-06 06:08:59 -0400 |
| commit | a17902373dc3fd2f06f0796ed2621109cb4acdd3 (patch) | |
| tree | 7c2bac0d8fca91b1916e72a79fef5a3b3520c6ad /src/timers.h | |
| parent | e00d109f7997ea3c238677a28271ced8fa8f9d4e (diff) | |
| download | fujinet-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.h | 8 |
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)) |
