use uint64_t rather than ull for the timestamps