File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -815,9 +815,21 @@ These constants are used as parameters for :func:`clock_getres` and
815815 .. versionadded :: 3.7
816816
817817
818+ .. data :: CLOCK_UPTIME_RAW
819+
820+ Clock that increments monotonically, tracking the time since an arbitrary
821+ point, unaffected by frequency or time adjustments and not incremented while
822+ the system is asleep.
823+
824+ .. availability :: macOS 10.12 and newer.
825+
826+ .. versionadded :: 3.8
827+
828+
818829The following constant is the only parameter that can be sent to
819830:func: `clock_settime `.
820831
832+
821833.. data :: CLOCK_REALTIME
822834
823835 System-wide real-time clock. Setting this clock requires appropriate
Original file line number Diff line number Diff line change @@ -234,6 +234,12 @@ Added method :meth:`~tkinter.Canvas.moveto`
234234in the :class: `tkinter.Canvas ` class.
235235(Contributed by Juliette Monsel in :issue: `23831 `.)
236236
237+ time
238+ ----
239+
240+ Added new clock :data: `~time.CLOCK_UPTIME_RAW ` for macOS 10.12.
241+ (Contributed by Joannah Nanjekye in :issue: `35702 `.)
242+
237243unicodedata
238244-----------
239245
Original file line number Diff line number Diff line change 1+ The :data: `time.CLOCK_UPTIME_RAW ` constant is now available for macOS 10.12.
Original file line number Diff line number Diff line change @@ -1806,6 +1806,9 @@ PyInit_time(void)
18061806#ifdef CLOCK_UPTIME
18071807 PyModule_AddIntMacro (m , CLOCK_UPTIME );
18081808#endif
1809+ #ifdef CLOCK_UPTIME_RAW
1810+ PyModule_AddIntMacro (m , CLOCK_UPTIME_RAW );
1811+ #endif
18091812
18101813#endif /* defined(HAVE_CLOCK_GETTIME) || defined(HAVE_CLOCK_SETTIME) || defined(HAVE_CLOCK_GETRES) */
18111814
You can’t perform that action at this time.
0 commit comments