switched time to int, and clock utilities to static