Lean
$LEAN_TAG$
|
Helper class that will monitor timer consumers and request more time if required. Used by IsolatorLimitResultProvider More...
Public Member Functions | |
TimeMonitor (int monitorIntervalMs=100) | |
Creates a new instance More... | |
void | Add (TimeConsumer consumer) |
Adds a new time consumer element to be monitored More... | |
void | Dispose () |
Disposes of the inner timer More... | |
Protected Member Functions | |
virtual void | ProcessConsumer (TimeConsumer consumer) |
Process the TimeConsumer object in TimeConsumers list More... | |
virtual void | RemoveAll () |
Remove all TimeConsumer objects where the Finished field is marked as true More... | |
Properties | |
List< TimeConsumer > | TimeConsumers [get] |
List to store the coming TimeConsumer objects More... | |
int | Count [get] |
Returns the number of time consumers currently being monitored More... | |
Helper class that will monitor timer consumers and request more time if required. Used by IsolatorLimitResultProvider
Definition at line 27 of file TimeMonitor.cs.
QuantConnect.Scheduling.TimeMonitor.TimeMonitor | ( | int | monitorIntervalMs = 100 | ) |
Creates a new instance
Definition at line 54 of file TimeMonitor.cs.
|
protectedvirtual |
Process the TimeConsumer object in TimeConsumers list
consumer | The TimeConsumer object to be processed |
This method is protected because it's overrode by a test class in IsolatorLimitResultProviderTests.cs
Definition at line 91 of file TimeMonitor.cs.
|
protectedvirtual |
Remove all TimeConsumer objects where the Finished
field is marked as true
This method is protected because it's overrode by a test class in IsolatorLimitResultProviderTests.cs
Definition at line 119 of file TimeMonitor.cs.
void QuantConnect.Scheduling.TimeMonitor.Add | ( | TimeConsumer | consumer | ) |
Adds a new time consumer element to be monitored
consumer | Time consumer instance |
Definition at line 128 of file TimeMonitor.cs.
void QuantConnect.Scheduling.TimeMonitor.Dispose | ( | ) |
Disposes of the inner timer
Definition at line 139 of file TimeMonitor.cs.
|
getprotected |
List to store the coming TimeConsumer objects
This field is protected because it's used in a test class in `IsolatorLimitResultProviderTests.cs
Definition at line 35 of file TimeMonitor.cs.
|
get |
Returns the number of time consumers currently being monitored
Definition at line 41 of file TimeMonitor.cs.