private static void SuffixProfilePb(MyProgrammableBlock __instance, ref long __localTimingStart) { double dtInSeconds; if (!ProfilerConfig.takeIngameMeasurement) { dtInSeconds = (Stopwatch.GetTimestamp() - __localTimingStart) / (double)Stopwatch.Frequency; } else { dtInSeconds = (double)(lastruntimeMS.GetValue(runtimeField.GetValue(__instance))) / 1000.0; } PBData.AddOrUpdatePair(__instance, dtInSeconds); }
private static void SuffixProfilePb(MyProgrammableBlock __instance, ref long __localTimingStart) { var dtInSeconds = (Stopwatch.GetTimestamp() - __localTimingStart) / (double)Stopwatch.Frequency; PBData.AddOrUpdatePair(__instance, dtInSeconds); }