documentation

This commit is contained in:
rusefillc 2024-05-12 10:46:50 -04:00
parent f1eff47403
commit 93b0f0db13
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ efitick_t getTimeNowNt();
#define MS_PER_SECOND 1000
#define US_PER_SECOND 1000000
// note lack of 'f' suffix in constant definition. We rely on consumers to have '-fsingle-precision-constant' gcc option which is not ideal
// todo: maybe grep .list file to assert lack of double operations? See https://github.com/rusefi/rusefi/commit/5e6d916b31a9dab1ac488b7194728e0d0c68fa26
#define US_PER_SECOND_F 1000000.0
#define US_PER_SECOND_LL 1000000LL