Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/bdwgc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Echterhoff <jonas@unity3d.com>2018-12-27 11:54:26 +0300
committerJonas Echterhoff <jonas@unity3d.com>2018-12-27 11:54:26 +0300
commitd3289c5b62779430d99b4593bf5255176496fdc1 (patch)
treecb0ed3c0fd5d939ca06e321697ddc4f92a244a5b /include
parent2f3578455e761ca10a126bef24073470f55ec525 (diff)
Fix MS_TIME_DIFF
Diffstat (limited to 'include')
-rw-r--r--include/private/gc_priv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h
index 6b05a711..8fe499f2 100644
--- a/include/private/gc_priv.h
+++ b/include/private/gc_priv.h
@@ -452,7 +452,7 @@ EXTERN_C_END
QueryPerformanceCounter(&t); \
x = t.QuadPart * 1000000000 / freq.QuadPart; \
} while (0)
-# define MS_TIME_DIFF(a,b) ((unsigned long)(((a) - (b)) * 1000000))
+# define MS_TIME_DIFF(a,b) ((unsigned long)(((a) - (b)) / 1000000))
# define NS_TIME_DIFF(a,b) ((a) - (b))
#elif defined(NN_PLATFORM_CTR)
# define CLOCK_TYPE long long