|
coastline 0.0.4
|
One-second timing averages and worst values since collection began. More...
#include <performance.h>
Classes | |
| struct | Snapshot |
| Completed sampling interval averages and extrema since the first recorded frame. More... | |
Public Member Functions | |
| bool | Record (std::uint64_t workNanoseconds, std::uint64_t now) |
| Accumulate a frame and publish averages after at least one second of timestamp progress. | |
| const std::optional< Snapshot > & | Latest () const |
One-second timing averages and worst values since collection began.
|
inline |
Accumulate a frame and publish averages after at least one second of timestamp progress.
| workNanoseconds | CPU work duration in nanoseconds, excluding presentation and pacing. |
| now | A monotonically increasing timestamp in nanoseconds from a consistent clock. |
|
inline |