Use getTimestamp in Clock.