elapsed time optimizations