Top "Timing" questions

timing is a numerical measurement of the how long it takes to execute an instruction or series of instructions

Writing a java annotation for timing method call

I want to write a java annotation which times the method call. something like this: @TimeIt public int someMethod() { ... } and …

java annotations timing
Can the execution of statements in Python be delayed?

I want it to run the first line print 1 then wait 1 second to run the second command print 2, etc. Pseudo-code: …

python sleep delay timing
How to estimate SQL query timing?

I'm trying to get an rough (order-of-magnitude) estimate of how long time the following query could take: mysql> EXPLAIN …

mysql query-optimization timing estimation time-estimation
How do I delay a vb.net program until a file operation completes?

I have this: Dim myTemp As String myTemp = System.DateTime.Now().ToString("MMMddyyyy_HHmmss") & ".pdf" System.IO.File.Copy(…

vb.net timing doevents
How can I get millisecond and microsecond-resolution timestamps in Python?

UPDATE: I finally figured this out and would like to share the knowledge and save someone a bunch of time, …

python timestamp delay timing milliseconds
How to enable build timing in Xcode?

I'd like to know how long my project's builds take, for example by displaying it in the build pane. Is …

xcode build timing
Is setTimeout with no delay the same as executing the function instantly?

I am looking at some existing code in a web application. I saw this: window.setTimeout(function () { ... }) Is this the …

javascript delay settimeout timing
Microsecond accurate (or better) process timing in Linux

I need a very accurate way to time parts of my program. I could use the regular high-resolution clock for …

linux process real-time timing high-resolution
differences between "d = dict()" and "d = {}"

$ python2.7 -m timeit 'd={}' 10000000 loops, best of 3: 0.0331 usec per loop $ python2.7 -m timeit 'd=dict()' 1000000 loops, best of 3: 0.19 …

python performance dictionary timing
Java equivalent of setInterval in javascript

Basically I want a function to be called every say, 10 milliseconds. How can I achieve that in Java?

java timing interrupt