SyntaxFix
Write A Post
Hire A Developer
Questions
Have a look at the timeit module. It's not really equivalent but if the code you want to time is inside a function you can easily use it.
timeit