Older parts of our codebase contain many macro constants:
|
#define NSEC_PER_SEC 1000000000L |
|
#define NSEC_PER_MSEC 1000000L |
|
#define NSEC_PER_USEC 1000L |
|
#define MSEC_PER_SEC 1000 |
We try to avoid macros when possible, so we use constexpr variables in new code. We should update the old code to be consistent.
Older parts of our codebase contain many macro constants:
STL/stl/src/xtime.cpp
Lines 11 to 14 in 66b1e23
We try to avoid macros when possible, so we use constexpr variables in new code. We should update the old code to be consistent.