gPTP Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tsc.hpp File Reference
#include <intrin.h>
#include <stdint.h>
Include dependency graph for tsc.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BASE_FREQUENCY   100000000
 

Functions

unsigned __int64 PLAT_rdtsc ()
 Gets the processor timestamp. More...
 
uint64_t getTSCFrequency (unsigned millis)
 Gets the TSC frequnecy. More...
 

Macro Definition Documentation

#define BASE_FREQUENCY   100000000

Base frequency in HZ

Function Documentation

uint64_t getTSCFrequency ( unsigned  millis)
inline

Gets the TSC frequnecy.

Parameters
millistime in miliseconds
Returns
TSC frequency
unsigned __int64 PLAT_rdtsc ( )
inline

Gets the processor timestamp.

Returns
processor timestamp