implement a basic time/clock datastructure