Code: Select all
time(&now);
Code: Select all
time(&now);
guillermop wrote:Thanks kolban,
The problem is xTaskGetTickCount and getTimeSinceStart will return the time passed since the device was turned on, but I'm looking for the date time output. I think it's possible to make something with time and getTimeSinceStart but I suppose I'll lose some precision, if there is not other way it's what I'll do
Code: Select all
int64_t xx_time_get_time() {
struct timeval tv;
gettimeofday(&tv, NULL);
return (tv.tv_sec * 1000LL + (tv.tv_usec / 1000LL));
}
Users browsing this forum: No registered users and 260 guests