CVBpy 14.0
StopWatchMode Class Reference

Mode at which the StopWatch should work. More...

Inherits object.

Static Public Attributes

int MultiCPU = 0
 Mode for multi-core architectures. More...
 
int SingleCPU = 1
 Mode for single-core architctures. More...
 

Detailed Description

Mode at which the StopWatch should work.

Member Data Documentation

◆ MultiCPU

int MultiCPU = 0
static

Mode for multi-core architectures.

The StopWatch works safe in multi-CPU environments. For that, some degree of accuracy is lost, because under Windows the timers, that are safe to use on a multi-CPU system, are limited to 1 ms granularity.

◆ SingleCPU

int SingleCPU = 1
static

Mode for single-core architctures.

The StopWatch works with a granularity of less than 1 ms (basically with what the Windows SDK function QueryPerformanceFrequency returns). However, a time generated with this mode will not be safe to use in a multi-CPU (not multi-core!) environment, because a thread may travel between CPUs and the timers are not synchronized between CPUs.