File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Expand file tree Collapse file tree 4 files changed +22
-0
lines changed 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
815
815
.. versionadded :: 3.7
816
816
817
817
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
+
818
829
The following constant is the only parameter that can be sent to
819
830
:func: `clock_settime `.
820
831
832
+
821
833
.. data :: CLOCK_REALTIME
822
834
823
835
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`
234
234
in the :class: `tkinter.Canvas ` class.
235
235
(Contributed by Juliette Monsel in :issue: `23831 `.)
236
236
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
+
237
243
unicodedata
238
244
-----------
239
245
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)
1806
1806
#ifdef CLOCK_UPTIME
1807
1807
PyModule_AddIntMacro (m , CLOCK_UPTIME );
1808
1808
#endif
1809
+ #ifdef CLOCK_UPTIME_RAW
1810
+ PyModule_AddIntMacro (m , CLOCK_UPTIME_RAW );
1811
+ #endif
1809
1812
1810
1813
#endif /* defined(HAVE_CLOCK_GETTIME) || defined(HAVE_CLOCK_SETTIME) || defined(HAVE_CLOCK_GETRES) */
1811
1814
You can’t perform that action at this time.
0 commit comments