Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Mar 2022 14:09:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262273] Subsuquent Calls to clock_gettime(CLOCK_THREAD_CPUTIME_ID,... ) return time in the past
Message-ID:  <bug-262273-227-gI5Gi9ppfD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262273-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262273

firk@cantconnect.ru changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |firk@cantconnect.ru

--- Comment #1 from firk@cantconnect.ru ---
That could happen when CPU frequency still not reached its maximum value. The
cpu_time is calculated as cpu_time = cpu_ticks / max_cpu_tickrate, and when
max_cpu_tickrate increasing, cpu_time decreasing.

Did you tested this on not just-powered-up system? Try to run the test multiple
times.

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262273-227-gI5Gi9ppfD>