adding timing for multi-threaded case