[Python-checkins] cpython: Issue #22117: remove _PyTime_INTERVAL() macro

victor.stinner python-checkins at python.org
Sat Mar 28 03:00:57 CET 2015


https://hg.python.org/cpython/rev/7605d9d262ca
changeset:   95234:7605d9d262ca
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sat Mar 28 01:32:13 2015 +0100
summary:
  Issue #22117: remove _PyTime_INTERVAL() macro

files:
  Include/pytime.h |  10 ----------
  1 files changed, 0 insertions(+), 10 deletions(-)


diff --git a/Include/pytime.h b/Include/pytime.h
--- a/Include/pytime.h
+++ b/Include/pytime.h
@@ -35,16 +35,6 @@
  */
 PyAPI_FUNC(void) _PyTime_gettimeofday(_PyTime_timeval *tp);
 
-/* Similar to _PyTime_gettimeofday() but retrieve also information on the
- * clock used to get the current time. */
-PyAPI_FUNC(int) _PyTime_gettimeofday_info(
-    _PyTime_timeval *tp,
-    _Py_clock_info_t *info);
-
-#define _PyTime_INTERVAL(tv_start, tv_end) \
-    ((tv_end.tv_sec - tv_start.tv_sec) + \
-     (tv_end.tv_usec - tv_start.tv_usec) * 0.000001)
-
 typedef enum {
     /* Round towards zero. */
     _PyTime_ROUND_DOWN=0,

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list