C# Executing timed commands with varying times

Posted by Gio Borje on Stack Overflow See other posts from Stack Overflow or by Gio Borje
Published on 2010-01-28T02:34:48Z Indexed on 2010/04/01 15:03 UTC
Read the original article Hit count: 217

Filed under:
|
|
|
|

I have a timer control and a grid with a List of coordinates for the grid. I was wondering how I could use the timer control or any other control in order to execute code in the interval, coordinate.Time as it varies for each coordinate. Also, thread.sleep(time) is not an option for me.

foreach (Coordinate coordinate in this.Macro)
            {
                coordinate.Time;
                coordinate.Initial;
                coordinate.Final;

                ... executecode @ coordinate.Time.
            }

© Stack Overflow or respective owner

Related posts about c#

Related posts about time