Skip to content

Commit

Permalink
Ensure clock type is steady
Browse files Browse the repository at this point in the history
  • Loading branch information
gfiumara committed Jan 6, 2023
1 parent 8176a97 commit 4299e3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/include/be_time_timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ namespace BiometricEvaluation
std::chrono::steady_clock;
#endif

/* Ensure chosen clock increases monotonically */
static_assert(BE_CLOCK_TYPE::is_steady,
"BE_CLOCK_TYPE is not a steady clock");

/** Constructor for the Timer object. */
Timer();

Expand Down

0 comments on commit 4299e3b

Please sign in to comment.