Timing: Some style changes
This commit is contained in:
parent
646a3c57c7
commit
9340c72084
1 changed files with 10 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents the number of ticks in 1 day.
|
||||
/// </summary>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue