Inheritance: AbstractCameraDevice
        public LocalCameraDeviceStatistics(LocalCameraDevice aCameraDevice, int aTimerResolutionMiliSec)
        {
            theCameraDevice = aCameraDevice;
            TimerResolutionMiliSec = aTimerResolutionMiliSec;
            PreviousNumberOfFrames = 0;

            FpsTimer = new System.Timers.Timer();
            FpsTimer.Interval = TimerResolutionMiliSec;
            FpsTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);

            FpsTimer.Start();
        }
Exemple #2
0
        public LocalCameraDeviceStatistics(LocalCameraDevice aCameraDevice, int aTimerResolutionMiliSec)
        {
            theCameraDevice        = aCameraDevice;
            TimerResolutionMiliSec = aTimerResolutionMiliSec;
            PreviousNumberOfFrames = 0;

            FpsTimer          = new System.Timers.Timer();
            FpsTimer.Interval = TimerResolutionMiliSec;
            FpsTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);

            FpsTimer.Start();
        }