0

I am using windows with pycurl, I am having an issue with timings when returning the CONNECT_TIME where by timings are not accurate.

Is there a way to make the connect_time in windows more accurate when using pycurl.

At the moment I am using the following.

stats['connection_time'] = self.getinfo(CONNECT_TIME)

If I were to use the time.clock() methods around the code then this will not return the connection time but rather the total_time which is a deterrent metric.

Matt Seymour
  • 8,880
  • 7
  • 60
  • 101
  • looking at [the curl source](https://github.com/bagder/curl/blob/master/lib/timeval.c) it should provide time differences with enough precision (don't know about accuracy) – jfs Nov 06 '12 at 18:38

1 Answers1

2

Completely forgot about this question but thought I would answer it for others. It appears as though pycurl suffers from granularity issues similar to the one you would get when using time.time on windows.

Instead I have had to edit my code and manually time the length of time taken to complete tasks.

Matt Seymour
  • 8,880
  • 7
  • 60
  • 101