mahmoudimus / nose-timer

A timer plugin for nosetests (how much time does every test take?)
MIT License
126 stars 33 forks source link

use timeit module to get most accurate timer for current platform #54

Closed cgoldberg closed 9 years ago

cgoldberg commented 9 years ago

This branch uses timeit.default_timer() to replace use of time.time() for calculating elapsed time (time_taken).

The reason for this change is that time.time() is not always the most accurate timer available for a given platform. timeit's default_timer() always is.

skudriashev commented 9 years ago

@cgoldberg, please, add yourself to the list of contributors.

cgoldberg commented 9 years ago

@skudriashev self.added :)

skudriashev commented 9 years ago

@cgoldberg, thanks for the contribution :+1:

Merged.