문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top