#include <tsc.h>
A low-overhead timer for benchmarking small regions of code.
This is usually unused in SMASH, because it should only be temporarily used when benchmarking.
Classes | |
union | Data |
Union that stores cycles,. More... | |
Public Member Functions | |
void | start () |
Start the counter. More... | |
void | stop () |
Stop the counter. More... | |
uint64_t | cycles () const |
Private Attributes | |
Data | m_start |
Stores start of benchmarking. More... | |
Data | m_end |
Stores end of benchmarking. More... | |
|
inline |
|
inline |
|
inline |
|
private |
|
private |