Back to index

python3.2  3.2.2
Classes | Defines | Functions
pytime.h File Reference
#include "pyconfig.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _PyTime_timeval

Defines

#define _PyTime_ADD_SECONDS(tv, interval)
#define _PyTime_INTERVAL(tv_start, tv_end)

Functions

 PyAPI_FUNC (void) _PyTime_gettimeofday(_PyTime_timeval *tp)

Class Documentation

struct _PyTime_timeval

Definition at line 18 of file pytime.h.

Class Members
time_t tv_sec
long tv_usec

Define Documentation

#define _PyTime_ADD_SECONDS (   tv,
  interval 
)
Value:
do { \
    tv.tv_usec += (long) (((long) interval - interval) * 1000000); \
    tv.tv_sec += (time_t) interval + (time_t) (tv.tv_usec / 1000000); \
    tv.tv_usec %= 1000000; \
} while (0)

Definition at line 29 of file pytime.h.

#define _PyTime_INTERVAL (   tv_start,
  tv_end 
)
Value:
((tv_end.tv_sec - tv_start.tv_sec) + \
     (tv_end.tv_usec - tv_start.tv_usec) * 0.000001)

Definition at line 36 of file pytime.h.


Function Documentation

Definition at line 1904 of file object.c.