]> granicus.if.org Git - python/commitdiff
Issue #22117: remove _PyTime_INTERVAL() macro
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 28 Mar 2015 00:32:13 +0000 (01:32 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 28 Mar 2015 00:32:13 +0000 (01:32 +0100)
Include/pytime.h

index 72b64606ffb40162587dffd4506e9ab5663a6862..30042891e290ad32531127db51640ee986c5ae86 100644 (file)
@@ -35,16 +35,6 @@ typedef struct {
  */
 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,