get time function added for manual timer