Stopwatchでマイクロ秒を算出 (Microseconds, Frequency)
using System;
using System.Diagnostics;
namespace System.Diagnostics.Extensions
{
public static class StopwatchExtensions
{
public static long ElapsedMicroseconds(this Stopwatch self)
{
return (self.ElapsedTicks * (1000 * 1000) / Stopwatch.Frequency);
}
}
}