Clock.GetCurrentTimeCore Method

Definition

Gets this clock's current time within its current iteration.

C#
protected virtual TimeSpan GetCurrentTimeCore();

Returns

The current time of this clock if it is active or filling; otherwise, Zero.

Remarks

This method is used in the implementation of the CurrentTime method and should not be called directly from your code.

Notes to Inheritors

Derived classes should override this method if they want to modify how they determine the current time.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also