Stopwatch.GetTimestamp メソッド
アセンブリ: System (system.dll 内)

Dim returnValue As Long returnValue = Stopwatch.GetTimestamp
基になるタイマ機構のタイマ刻みカウンタ値を表す長整数。

Stopwatch クラスが高解像力のパフォーマンス カウンタを使用する場合、GetTimestamp はそのカウンタの現在の値を返します。Stopwatch クラスがシステム タイマを使用する場合、GetTimestamp は、DateTime.Now インスタンスの現在の DateTime.Ticks プロパティを返します。

GetTimestamp メソッドを使用してパフォーマンス カウンタを設定する例を次に示します。
' Create the counter. Dim PC As PerformanceCounter PC = New PerformanceCounter(categoryName, counterName, False) ' Initialize the counter. PC.RawValue = Stopwatch.GetTimestamp()
// Create the performance counter. PerformanceCounter PC = new PerformanceCounter(categoryName, counterName, false); // Initialize the counter. PC.RawValue = Stopwatch.GetTimestamp();
// Create the performance counter. PerformanceCounter^ PC = gcnew PerformanceCounter( categoryName, counterName, false ); // Initialize the counter. PC->RawValue = Stopwatch::GetTimestamp();
// Create the performance counter. PerformanceCounter pc = new PerformanceCounter(categoryName, counterName, false); // Initialize the counter. pc.set_RawValue(Stopwatch.GetTimestamp());

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からStopwatch.GetTimestamp メソッドを検索する場合は、下記のリンクをクリックしてください。

- Stopwatch.GetTimestamp メソッドのページへのリンク