Atomic access to global time counter