Clock.GetCurrentTimeCore 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得此時鐘目前時間的當前迭代。
protected:
virtual TimeSpan GetCurrentTimeCore();
protected virtual TimeSpan GetCurrentTimeCore();
abstract member GetCurrentTimeCore : unit -> TimeSpan
override this.GetCurrentTimeCore : unit -> TimeSpan
Protected Overridable Function GetCurrentTimeCore () As TimeSpan
傳回
如果該時鐘是啟動或充能,則為該時鐘的當前時間;否則,。 Zero
備註
此方法用於方法實 CurrentTime 作,不應直接從程式碼中呼叫。
給繼承者的注意事項
導出類別若想修改當前時間的判定方式,應該會覆蓋此方法。