From f62283b59536bbeabc4b108c04c58c9c4931bced Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Wed, 29 Aug 2012 16:35:08 +0100 Subject: [PATCH] Fixed resolution of GetProfilerTime on non-Windows platforms (r=me). --- core/logic/smn_profiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/logic/smn_profiler.cpp b/core/logic/smn_profiler.cpp index 0d768158..7d3df0f2 100644 --- a/core/logic/smn_profiler.cpp +++ b/core/logic/smn_profiler.cpp @@ -179,7 +179,7 @@ static cell_t GetProfilerTime(IPluginContext *pContext, const cell_t *params) #else int64_t start_us = int64_t(prof->start.tv_sec) * 1000000 + prof->start.tv_usec; int64_t stop_us = int64_t(prof->end.tv_sec) * 1000000 + prof->end.tv_usec; - fTime = double((stop_us - start_us) / 1000) / 1000.0; + fTime = double(stop_us - start_us) / 1000000.0; #endif return sp_ftoc(fTime);