Implementation of time elapsed