call the time function right away