fix: dev: Change the NS_PER_SEC (and friends) from enum to defines
New version of clang (19) has introduced a stricter checks when mixing integer (and float types) with enums. In this case, we used enum {} as missing constexpr (added in C23) and it even make sense to change to constants to macros.
Closes #4845 (closed)