use time to measure runtime instead