I have a code that plays fast _it's order is log(n)_.I have to meter it's play's elapsed time.I used from time.time() and time.clock() but they returned 0.I need a timer witch meter nano second.
How can I do it?
funfullson
0
Junior Poster in Training
Recommended Answers
Jump to PostSimply loop your code a million times and time the whole thing. There is also module timeit.
All 3 Replies
Ene Uran
638
Posting Virtuoso
snippsat
661
Master Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.