Added time taken mechanism for testing purpose