try to use a uint64_t for timestamp instead of the system time type timeval