Implement grnxx::PeriodicClock.

Also, merge time-related tests.