Definition in file RTServerImpl.cc.
Include dependency graph for RTServerImpl.cc:
Go to the source code of this file.
Defines | |
#define | MHZ_SLOP 2 |
The acceptable difference in successive guesses of the machines Mhz. | |
Typedefs | |
typedef signed long long int | cycle_time |
Type used for cycle counter values. | |
typedef double | us_time |
Type used for time value in microseconds. | |
Functions | |
cycle_time | rdtsc (void) |
us_time | cycle_to_us (cycle_time c) |
Convert a cycle count value generated by rdtsc to a microsecond value. | |
cycle_time | us_to_cycle (us_time us) |
Convert a microsecond value to cycle count value. | |
us_time | get_timeval_us (void) |
double | my_fabs (double d) |
double | FindMHZ (void) |
Variables | |
double | MHZ |
The CPU frequency for this machine, in megahertz. |
|
The acceptable difference in successive guesses of the machines Mhz.
Definition at line 62 of file RTServerImpl.cc. Referenced by FindMHZ(). |
|
Convert a cycle count value generated by rdtsc to a microsecond value.
Definition at line 81 of file RTServerImpl.cc. |
|
Definition at line 126 of file RTServerImpl.cc. References cycle_time, get_timeval_us(), MHZ_SLOP, my_fabs(), rdtsc(), and us_time. Referenced by RTServerImpl::RTServerImpl(). |
Here is the call graph for this function:
|
Definition at line 100 of file RTServerImpl.cc. References us_time. Referenced by FindMHZ(). |
|
Definition at line 114 of file RTServerImpl.cc. Referenced by FindMHZ(). |
|
Definition at line 68 of file RTServerImpl.cc. References cycle_time. Referenced by FindMHZ(), and RTServerImpl::Periodic(). |
|
Convert a microsecond value to cycle count value.
Definition at line 92 of file RTServerImpl.cc. References cycle_time, and MHZ. Referenced by RTServerImpl::Periodic(). |