StuBS
|
TimeStamp Counter (TSC) More...
#include "types.h"
Namespaces | |
namespace | 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. | |
uint64_t | TSC::read (Instruction instruction=RDTSC) |
Reads the current timestamp counter. | |
uint32_t | TSC::ticks (bool use_pit=false) |
Gather the TSC frequency in ticks per milliseconds. | |
uint64_t | TSC::nanoseconds (uint64_t delta) |
Convert a timestamp delta value to nanoseconds. | |
void | TSC::delay (uint64_t us) |
Actively wait the provided waiting time. | |