-
- Downloads
Store timer duration in native duration type & Add proper test for timer
Storing duration in doubles is sub-optimal as each cast may incur in truncation. Accumulations may also truncate the value further. Using the native value preserves the duration unit user request its value in seconds. Use duration_cast instead of division: Interestingly, dividing by 1.0s yields a different (slightly longer) assembly code than when making an explicit cast to seconds. The difference seems to me is the cast manages to generate SEE vector registers/instructions.
parent
5b13e205
No related branches found
No related tags found
dune/common/test/timertest.cc
0 → 100644
Please register or sign in to comment