From cc547e40a4ed748a25c255466df8134ee601a7a8 Mon Sep 17 00:00:00 2001 From: "Lucas, John P." Date: Wed, 26 Jun 2024 10:51:17 -0400 Subject: [PATCH] [nasa/nos3#176] Updated MicroSecPerTick to expected 1000000 value; --- src/os/nos/src/os-impl-timebase.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/nos/src/os-impl-timebase.c b/src/os/nos/src/os-impl-timebase.c index 75ee44f05..8aeea5e2c 100644 --- a/src/os/nos/src/os-impl-timebase.c +++ b/src/os/nos/src/os-impl-timebase.c @@ -294,8 +294,8 @@ int32 OS_Posix_TimeBaseAPI_Impl_Init(void) * - This is used internally for reporting accuracy, * - TicksPerSecond values over 2M will return zero */ - OS_SharedGlobalVars.MicroSecPerTick = - (1000000 + (OS_SharedGlobalVars.TicksPerSecond / 2)) / OS_SharedGlobalVars.TicksPerSecond; + OS_SharedGlobalVars.MicroSecPerTick = 1000000; + //(1000000 + (OS_SharedGlobalVars.TicksPerSecond / 2)) / OS_SharedGlobalVars.TicksPerSecond; } while (0); return return_code;