Lean  $LEAN_TAG$
QuantConnect.RealTimeProvider Class Reference

Provides an implementation of ITimeProvider that uses DateTime.UtcNow to provide the current time More...

Inheritance diagram for QuantConnect.RealTimeProvider:
[legend]

Public Member Functions

DateTime GetUtcNow ()
 Gets the current time in UTC More...
 

Static Public Attributes

static readonly ITimeProvider Instance = new RealTimeProvider()
 Provides a static instance of the RealTimeProvider More...
 

Detailed Description

Provides an implementation of ITimeProvider that uses DateTime.UtcNow to provide the current time

Definition at line 25 of file RealTimeProvider.cs.

Member Function Documentation

◆ GetUtcNow()

DateTime QuantConnect.RealTimeProvider.GetUtcNow ( )

Gets the current time in UTC

Returns
The current time in UTC

Implements QuantConnect.ITimeProvider.

Definition at line 39 of file RealTimeProvider.cs.

Member Data Documentation

◆ Instance

readonly ITimeProvider QuantConnect.RealTimeProvider.Instance = new RealTimeProvider()
static

Provides a static instance of the RealTimeProvider

Since this implementation is stateless, it doesn't make sense to have multiple instances.

Definition at line 33 of file RealTimeProvider.cs.


The documentation for this class was generated from the following file: