bn::timer class
#include <bn_timer.h>

Provides a way to calculate elapsed times.

One timer tick is equivalent to 64 CPU clock cycles.

Constructors, destructors, conversion operators

timer()
Constructor.

Public functions

auto elapsed_ticks() const -> int
Returns the number of ticks since this timer was built or restarted.
void restart()
Restarts the timer's internal state.

Function documentation

void bn::timer::restart()

Restarts the timer's internal state.

Equivalent to: *this = timer();