Sets up the ring buffer.
The buffer's capacity.
Readonly
capacityThe buffer's capacity.
Obtains the latest element (LIFO) without removing it. Throws an exception if a buffer is
empty. Before calling this method, make sure that size > 0
.
Obtains the oldest element (FIFO) without removing it. Throws an exception if a buffer is
empty. Before calling this method, make sure that size > 0
.
Generated using TypeDoc
A simple ring buffer to store the last
n
values of the timer. The buffer works on a First-In-First-Out (FIFO) basis.