added measureRuntime()