Skip to content
Snippets Groups Projects

[cleanup] Remove old code in Dune::Timer

Merged Carsten Gräser requested to merge feature/cleanup-timer into master
All threads resolved!
3 files
+ 106
28
Compare changes
  • Side-by-side
  • Inline
Files
3
  • 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.
@@ -348,6 +348,9 @@ dune_add_test(SOURCES typeutilitytest.cc
dune_add_test(SOURCES typelisttest.cc
LABELS quick)
dune_add_test(SOURCES timertest.cc
LABELS quick)
dune_add_test(SOURCES utilitytest.cc
LABELS quick)
Loading