Hello,
i want to measure the time from one SerialConnection.datareceived event to the next. With a frequency of precise 10Hz. But it doesn’t work propertly.
The code in the DataReceived is:
WinMain.Label_actual.Text = Format(System.Microseconds - actual ,"0") + " mics"
actual = System.Microseconds
(actual is double)
In the most of time the result is “100000 mics”
But after app 10 sec the result goes down to 200-4000.
The worst case is, if the mouse is moved over the window.
Then the speed drops down too.
Why? There is nothing, no mouse event!
I use new Linux Mint Mate on a new PC. The system load is lower than 4%
8GB are free.
Who can explain it to me?
On a Win10 laptop the microseconds are absolute unstable. The results are rubbish.
Ticks instead of microseconds are buggy too
Now i use the SecondsFrom1970 as time base.
That works also very bad. It seems that the DataReceived event works absolute uneven…