Re: Using struct timeval in python

2007-09-08 Thread sapsi
The timedelta module did the job just fine. Thank you -- http://mail.python.org/mailman/listinfo/python-list

Re: Using struct timeval in python

2007-09-08 Thread David
On 9/8/07, sapsi <[EMAIL PROTECTED]> wrote: > Hi, > I am using a library (pcapy) that returns a timeval object T= > (seconds,microseconds) where microseconds is always < 1e6. > Is there a Python class that can handle timeval structs? Specifically, > I wish to subtract two T (defined above) objects,

Using struct timeval in python

2007-09-08 Thread sapsi
Hi, I am using a library (pcapy) that returns a timeval object T= (seconds,microseconds) where microseconds is always < 1e6. Is there a Python class that can handle timeval structs? Specifically, I wish to subtract two T (defined above) objects, taking into account the large values of T[0] and T[1]