I'm creating a simple timer class which returns me e.g. the current time in millis. On linux I'm using gettimeofday. I'm wondering what return type this function should have. i.e.
double getMillis()
or uint64_t getMillis()
etc... I would say uint64_t
can hold bigger values and therefore recommended, though while googling I see lots of different implementations.
Any advice on this?
Thanks