add optional paramenter to elapsed time

allow elapsed time to accept optional parameter for the current time.