Define time constants and refactor time routines to use them
Some checks failed
Builds / ExectOS (amd64, debug) (push) Successful in -59m24s
Builds / ExectOS (amd64, release) (push) Successful in -59m27s
Builds / ExectOS (i686, release) (push) Failing after -59m34s
Builds / ExectOS (i686, debug) (push) Failing after -59m33s

This commit is contained in:
2026-04-24 18:38:07 +02:00
parent 4afe678667
commit 8ab3ddb8eb
2 changed files with 13 additions and 5 deletions

View File

@@ -53,6 +53,13 @@
#define SHA1_BLOCK_SIZE 64
#define SHA1_DIGEST_SIZE 20
/* Time related definitions */
#define TIME_SECONDS_PER_MINUTE 60ULL
#define TIME_SECONDS_PER_HOUR 3600ULL
#define TIME_SECONDS_PER_DAY 86400ULL
#define TIME_TICKS_PER_SECOND 10000000ULL
#define TIME_TICKS_PER_MILLISECOND 10000ULL
/* C/C++ specific code */
#ifndef __XTOS_ASSEMBLER__