From dcc13b6199414e47dd4f70f96c7bc9e06daee9c3 Mon Sep 17 00:00:00 2001 From: ikpil Date: Sat, 25 Mar 2023 12:52:39 +0900 Subject: [PATCH] microseconds -> millisecond --- src/DotRecast.Recast.Demo/RecastDemo.cs | 2 +- src/DotRecast.Recast.Demo/Tools/CrowdProfilingTool.cs | 2 +- src/DotRecast.Recast.Demo/Tools/CrowdTool.cs | 2 +- src/DotRecast.Recast.Demo/Tools/DynamicUpdateTool.cs | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/DotRecast.Recast.Demo/RecastDemo.cs b/src/DotRecast.Recast.Demo/RecastDemo.cs index 9276659..7b4f048 100644 --- a/src/DotRecast.Recast.Demo/RecastDemo.cs +++ b/src/DotRecast.Recast.Demo/RecastDemo.cs @@ -596,7 +596,7 @@ public class RecastDemo sample.update(sample.getInputGeom(), buildResult.Item1, buildResult.Item2); sample.setChanged(false); - settingsUI.setBuildTime((Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMicrosecond); + settingsUI.setBuildTime((Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMillisecond); toolsUI.setSample(sample); } } diff --git a/src/DotRecast.Recast.Demo/Tools/CrowdProfilingTool.cs b/src/DotRecast.Recast.Demo/Tools/CrowdProfilingTool.cs index 2eed2c3..e1293fc 100644 --- a/src/DotRecast.Recast.Demo/Tools/CrowdProfilingTool.cs +++ b/src/DotRecast.Recast.Demo/Tools/CrowdProfilingTool.cs @@ -271,7 +271,7 @@ public class CrowdProfilingTool } } - crowdUpdateTime = (endTime - startTime) / TimeSpan.TicksPerMicrosecond; + crowdUpdateTime = (endTime - startTime) / TimeSpan.TicksPerMillisecond; } private void moveMob(NavMeshQuery navquery, QueryFilter filter, CrowdAgent ag, AgentData agentData) diff --git a/src/DotRecast.Recast.Demo/Tools/CrowdTool.cs b/src/DotRecast.Recast.Demo/Tools/CrowdTool.cs index 5a07803..6e26e67 100644 --- a/src/DotRecast.Recast.Demo/Tools/CrowdTool.cs +++ b/src/DotRecast.Recast.Demo/Tools/CrowdTool.cs @@ -676,7 +676,7 @@ public class CrowdTool : Tool m_agentDebug.vod.normalizeSamples(); // m_crowdSampleCount.addSample((float) crowd.getVelocitySampleCount()); - crowdUpdateTime = (endTime - startTime) / TimeSpan.TicksPerMicrosecond; + crowdUpdateTime = (endTime - startTime) / TimeSpan.TicksPerMillisecond; } private void hilightAgent(CrowdAgent agent) diff --git a/src/DotRecast.Recast.Demo/Tools/DynamicUpdateTool.cs b/src/DotRecast.Recast.Demo/Tools/DynamicUpdateTool.cs index 04807d4..8c594d5 100644 --- a/src/DotRecast.Recast.Demo/Tools/DynamicUpdateTool.cs +++ b/src/DotRecast.Recast.Demo/Tools/DynamicUpdateTool.cs @@ -183,7 +183,7 @@ public class DynamicUpdateTool : Tool long t1 = Stopwatch.GetTimestamp(); float? hitPos = dynaMesh.voxelQuery().raycast(sp, ep); long t2 = Stopwatch.GetTimestamp(); - raycastTime = (t2 - t1) / TimeSpan.TicksPerMicrosecond; + raycastTime = (t2 - t1) / TimeSpan.TicksPerMillisecond; raycastHit = hitPos.HasValue; raycastHitPos = hitPos.HasValue ? new float[] { sp[0] + hitPos.Value * (ep[0] - sp[0]), sp[1] + hitPos.Value * (ep[1] - sp[1]), sp[2] + hitPos.Value * (ep[2] - sp[2]) } @@ -468,7 +468,7 @@ public class DynamicUpdateTool : Tool bool updated = dynaMesh.update(executor).Result; if (updated) { - buildTime = (Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMicrosecond; + buildTime = (Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMillisecond; sample.update(null, dynaMesh.recastResults(), dynaMesh.navMesh()); sample.setChanged(false); } @@ -720,7 +720,7 @@ public class DynamicUpdateTool : Tool Console.WriteLine(e); } - buildTime = (Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMicrosecond; + buildTime = (Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMillisecond; sample.update(null, dynaMesh.recastResults(), dynaMesh.navMesh()); }