Skip to content
Commit 44b72bf8 authored by Christopher Friedt's avatar Christopher Friedt Committed by Carles Cufi
Browse files

posix: clock: fix seconds calculation



The previous method used to calculate seconds in `clock_gettime()`
seemed to have an inaccuracy that grew with time causing the
seconds to be off by an order of magnitude when ticks would roll
over.

This change fixes the method used to calculate seconds.

Signed-off-by: default avatarChris Friedt <cfriedt@meta.com>
parent 6f141fe8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment