wiki:rdtscTimeSource

Plugin Manual

rdtscTimeSource for high precision timer counters

The plugin changes the default time source of the engine against a time source based on the fetching of the rdtsc instruction of the CPU.

Warning: on CPUs with dynamicly changeable frequencies the timers may run incorrect

Following parameters can be given to the plugin during the initialization:

  • sync_interval [uint32]: time in milliseconds which can be passed untill the next synchronization. On CPUs with stable frequency this value can be set to 0. Default value is 500
  • sync_duration [uint32]: time in milliseconds how long the frequency measurement (i.e. synching) has to take place. Shorter values can produce incorrect results of the CPU speed. Default value is 10ms.