projects/Extant/Threading/ThreadRun.cs
/// <summary>
/// Used to register an action to be called so many times per second on this thread.
/// </summary>
/// <param name="action"></param>
/// <param name="callsPerSecond"></param>
Used to register an action to be called so many times per second on this thread.
Used to register an action to be called so many times per second on this thread .
protected void RegisterTickCall(Action action, TimeSpan timeBetweenCalls)
        {
            if (action == null)
                throw new ArgumentException("Action cannot be null.");
            _tickCalls.Add(new TickCall(action, timeBetweenCalls));
        }
protected void RegisterTickCall ( Action action , TimeSpan timeBetweenCalls ) { if ( action == null ) throw new ArgumentException ( " " ) ; _tickCalls . Add ( new TickCall ( action , timeBetweenCalls ) ) ; }
Used to register an action to be called so many times per second on this thread.
Used to register an action to be called so many times per second on this thread .
action
Action
None
timeBetweenCalls
TimeSpan
callsPerSecond
None