diff --git a/Ryujinx.Common/PerformanceCounter.cs b/Ryujinx.Common/PerformanceCounter.cs index cd5fb1954a..0f90df5fb1 100644 --- a/Ryujinx.Common/PerformanceCounter.cs +++ b/Ryujinx.Common/PerformanceCounter.cs @@ -4,15 +4,6 @@ namespace Ryujinx.Common { public static class PerformanceCounter { - static PerformanceCounter() - { - TicksPerMillisecond = Stopwatch.Frequency / 1000; - TicksPerSecond = Stopwatch.Frequency; - TicksPerMinute = TicksPerSecond * 60; - TicksPerHour = TicksPerMinute * 60; - TicksPerDay = TicksPerHour * 24; - } - /// /// Represents the number of ticks in 1 day. /// @@ -45,9 +36,7 @@ namespace Ryujinx.Common { get { - long timestamp = Stopwatch.GetTimestamp(); - - return timestamp; + return Stopwatch.GetTimestamp(); } } @@ -63,5 +52,14 @@ namespace Ryujinx.Common return timestamp / TicksPerMillisecond; } } + + static PerformanceCounter() + { + TicksPerMillisecond = Stopwatch.Frequency / 1000; + TicksPerSecond = Stopwatch.Frequency; + TicksPerMinute = TicksPerSecond * 60; + TicksPerHour = TicksPerMinute * 60; + TicksPerDay = TicksPerHour * 24; + } } }