working with time elapsed