From a463df9d022232ed72d8bf691ffc7e24308a0c66 Mon Sep 17 00:00:00 2001 From: Andy Adshead Date: Sun, 27 Jan 2019 15:50:09 +0000 Subject: [PATCH] Timing info cleanup --- Ryujinx.Profiler/TimingInfo.cs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Ryujinx.Profiler/TimingInfo.cs b/Ryujinx.Profiler/TimingInfo.cs index f1443d4bfd..0cac8e58d1 100644 --- a/Ryujinx.Profiler/TimingInfo.cs +++ b/Ryujinx.Profiler/TimingInfo.cs @@ -2,11 +2,17 @@ { public struct TimingInfo { - public long BeginTime, LastTime, TotalTime, Instant; - public int Count, InstantCount; - public long AverageTime - { - get => (Count == 0) ? -1 : TotalTime / Count; - } + // Timestamps + public long BeginTime; + public long LastTime; + public long TotalTime; + public long Instant; + + // Measurement counts + public int Count; + public int InstantCount; + + // Work out average + public long AverageTime => (Count == 0) ? -1 : TotalTime / Count; } }