![]() |
Spicy
|
#include <timing.h>
Static Public Member Functions | |
static void | summary (std::ostream &out) |
static std::shared_ptr< Manager > | singleton () |
Protected Member Functions | |
void | register_ (Ledger *ledger) |
void | unregister (Ledger *ledger) |
Ledger * | newLedger (const std::string &name) |
Protected Attributes | |
friend | Collector |
friend | Ledger |
Singleton object managing all timer state.
|
static |
Returns a pointer to a global singleon manager instance. This returns a shared_ptr so that ledgers can store that to ensure the global singleton doesn't get destroyed at exit before they go away, too.
|
static |
Renders a summary of execution statistics for all currently existing Ledger
objects.