@@ -249,29 +249,13 @@ typedef struct {
249249 double resolution ;
250250} _Py_clock_info_t ;
251251
252- // Similar to PyTime_Time() but silently ignore the error and return 0 if the
253- // internal clock fails.
254- //
255- // Use _PyTime_TimeWithInfo() or the public PyTime_Time() to check
256- // for failure.
257- // Export for '_random' shared extension.
258- PyAPI_FUNC (PyTime_t ) _PyTime_TimeUnchecked (void );
259-
260252// Get the current time from the system clock.
261253// On success, set *t and *info (if not NULL), and return 0.
262254// On error, raise an exception and return -1.
263255extern int _PyTime_TimeWithInfo (
264256 PyTime_t * t ,
265257 _Py_clock_info_t * info );
266258
267- // Similar to PyTime_Monotonic() but silently ignore the error and return 0 if
268- // the internal clock fails.
269- //
270- // Use _PyTime_MonotonicWithInfo() or the public PyTime_Monotonic()
271- // to check for failure.
272- // Export for '_random' shared extension.
273- PyAPI_FUNC (PyTime_t ) _PyTime_MonotonicUnchecked (void );
274-
275259// Get the time of a monotonic clock, i.e. a clock that cannot go backwards.
276260// The clock is not affected by system clock updates. The reference point of
277261// the returned value is undefined, so that only the difference between the
@@ -296,14 +280,6 @@ PyAPI_FUNC(int) _PyTime_localtime(time_t t, struct tm *tm);
296280// Export for '_datetime' shared extension.
297281PyAPI_FUNC (int ) _PyTime_gmtime (time_t t , struct tm * tm );
298282
299- // Similar to PyTime_PerfCounter() but silently ignore the error and return 0
300- // if the internal clock fails.
301- //
302- // Use _PyTime_PerfCounterWithInfo() or the public PyTime_PerfCounter() to
303- // check for failure.
304- // Export for '_lsprof' shared extension.
305- PyAPI_FUNC (PyTime_t ) _PyTime_PerfCounterUnchecked (void );
306-
307283
308284// Get the performance counter: clock with the highest available resolution to
309285// measure a short duration.
@@ -319,12 +295,12 @@ extern int _PyTime_PerfCounterWithInfo(
319295// --- _PyDeadline -----------------------------------------------------------
320296
321297// Create a deadline.
322- // Pseudo code: _PyTime_MonotonicUnchecked () + timeout.
298+ // Pseudo code: return PyTime_MonotonicRaw () + timeout
323299// Export for '_ssl' shared extension.
324300PyAPI_FUNC (PyTime_t ) _PyDeadline_Init (PyTime_t timeout );
325301
326302// Get remaining time from a deadline.
327- // Pseudo code: deadline - _PyTime_MonotonicUnchecked().
303+ // Pseudo code: return deadline - PyTime_MonotonicRaw()
328304// Export for '_ssl' shared extension.
329305PyAPI_FUNC (PyTime_t ) _PyDeadline_Get (PyTime_t deadline );
330306
0 commit comments