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

Provides a way to calculate elapsed times.

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.
auto elapsed_ticks_with_restart() -> int
Returns the number of ticks since this timer was built or restarted, restarting its internal state.

Function documentation

void bn::timer::restart()

Restarts the timer's internal state.

Equivalent to: *this = timer();