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);
        }
Exemplo n.º 2
0
        private static void SuffixProfilePb(MyProgrammableBlock __instance, ref long __localTimingStart)
        {
            var dtInSeconds = (Stopwatch.GetTimestamp() - __localTimingStart) / (double)Stopwatch.Frequency;

            PBData.AddOrUpdatePair(__instance, dtInSeconds);
        }