Can we get example code for getting timer events in C# for windows CE 7 .
We want time event say for every 20ms.
SOM : Colibri T20
Carrier board : Iris carrier board
OS : Win CE 7
Can we get example code for getting timer events in C# for windows CE 7 .
We want time event say for every 20ms.
SOM : Colibri T20
Carrier board : Iris carrier board
OS : Win CE 7
private void Form1_Load(object sender, EventArgs e)
{
this.timer1.Enabled = true;
this.timer1.Interval = x; //x for your time, 20 sec is 20000
}
private void timer1_Tick(object sender, EventArgs e)
{
//do something
}
this is how I implemented Timer in one of my applications.
Or you could implement Timer.Elapsed event.
This sounds like a possible way to go. @centurymetering: Check if the jitter of this kind of timer is fine for you. Otherwise you may could start a dedicated thread in native C or C++ that does something like SleepTillTick. See more details here.