added a useful current time function