crude implementation of time