Which is better time.time or time.process_time() for measure the time between the line of codes in python? | Sololearn: Learn to code for FREE!

+4

Which is better time.time or time.process_time() for measure the time between the line of codes in python?

9/8/2018 7:08:56 AM

Maninder $ingh

3 Answers

New Answer

+3

Maninder Singh is this applicable to c++ ? asaik, it's not .... if so, please don't tag c++ in question which don't have c++ applicability

+1

I usually use time.perf_counter()

0

Drag and drop from the options below to declare a ''B'' class with its own constructor and a ''D'' class with its own constructor, where ''D'' inherits ''B''. B { public: () { cout << "B's constructor"; } }; class D : B { () { cout << "D's constructor"; } };