diff options
Diffstat (limited to 'src/Ryujinx.Common/PerformanceCounter.cs')
-rw-r--r-- | src/Ryujinx.Common/PerformanceCounter.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Ryujinx.Common/PerformanceCounter.cs b/src/Ryujinx.Common/PerformanceCounter.cs index 97ee23a2..4b49c5c9 100644 --- a/src/Ryujinx.Common/PerformanceCounter.cs +++ b/src/Ryujinx.Common/PerformanceCounter.cs @@ -1,10 +1,10 @@ -using System.Diagnostics; +using System.Diagnostics; namespace Ryujinx.Common { public static class PerformanceCounter { - private static double _ticksToNs; + private static readonly double _ticksToNs; /// <summary> /// Represents the number of ticks in 1 day. @@ -71,12 +71,12 @@ namespace Ryujinx.Common static PerformanceCounter() { TicksPerMillisecond = Stopwatch.Frequency / 1000; - TicksPerSecond = Stopwatch.Frequency; - TicksPerMinute = TicksPerSecond * 60; - TicksPerHour = TicksPerMinute * 60; - TicksPerDay = TicksPerHour * 24; + TicksPerSecond = Stopwatch.Frequency; + TicksPerMinute = TicksPerSecond * 60; + TicksPerHour = TicksPerMinute * 60; + TicksPerDay = TicksPerHour * 24; _ticksToNs = 1000000000.0 / Stopwatch.Frequency; } } -}
\ No newline at end of file +} |