[Bug 266304] lang/python39 3.9.13 time.CLOCK_UPDATE returns always 5
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Sep 2022 09:31:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266304 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 -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.