Dokumentation
tsc.h File Reference
TimeStamp Counter (TSC) More...
#include "types.h"
Include dependency graph for tsc.h:
Namespaces | |
TSC | |
Access to the Timestamp Counter (of the current Core) | |
Enumerations | |
enum | TSC::Instruction { TSC::RDTSC, TSC::RDTSCP, TSC::CPUID_RDTSC, TSC::RDTSCP_CPUID, TSC::CR0_RDTSC } |
Functions | |
bool | TSC::available (Instruction instruction=RDTSC) |
Check availability of TSC. More... | |
uint64_t | TSC::read (Instruction instruction=RDTSC) |
Reads the current timestamp counter. More... | |
uint32_t | TSC::ticks (bool use_pit=false) |
Gather the TSC frequency in ticks per milliseconds. More... | |
uint64_t | TSC::nanoseconds (uint64_t delta) |
Convert a timestamp delta value to nanoseconds. More... | |
void | TSC::delay (uint64_t us) |
Actively wait the provided waiting time. More... | |