PlatformDiagnosticTraceRuntimeInfo.RuntimeFileTime 属性

定义

跟踪的时间戳 (刻度) 。

public:
 property long long RuntimeFileTime { long long get(); };
long RuntimeFileTime();
public long RuntimeFileTime { get; }
var int64 = platformDiagnosticTraceRuntimeInfo.runtimeFileTime;
Public ReadOnly Property RuntimeFileTime As Long

属性值

Int64

long long

long

跟踪文件的时间戳。

注解

Windows 文件时间是一个 64 位值,表示自 A.1601 年 1 月 1 日午夜 12:00(午夜 1601 年 1 月 1 日) (C.E.) 协调世界时 (UTC) 以来经过的 100 纳秒间隔数。 Windows 使用文件时间来记录应用程序创建、访问或写入文件时的时间。

使用 DateTime.FromFileTimeUtc () 将返回值转换为 DateTime;

适用于