Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Sep 2022 09:31:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 266304] lang/python39 3.9.13 time.CLOCK_UPDATE returns always 5
Message-ID:  <bug-266304-21822-ONbul9F7Si@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-266304-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-266304-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266304

Konstantin Belousov <kib@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |Closed
                 CC|                            |kib@FreeBSD.org
         Resolution|---                         |Works As Intended

--- Comment #3 from Konstantin Belousov <kib@FreeBSD.org> ---
What exactly you are trying to do?

time.CLOCK_XXX are the timer's ids used as parameters for e.g.
time.clock_gettime().  They must be constant.

For instance,
>>> time.CLOCK_UPTIME
5
>>> time.CLOCK_REALTIME
0
>>> time.CLOCK_MONOTONIC
4

Then
>>> time.clock_gettime(time.CLOCK_UPTIME)
4458812.264450944
>>> time.clock_gettime(time.CLOCK_REALTIME)
1662715871.99249
>>> time.clock_gettime(time.CLOCK_MONOTONIC)
4458906.035766988

This is clearly stated in the documentation

--=20
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266304-21822-ONbul9F7Si>