Skip to content

Commit

Permalink
Fixes espressif#13
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteYuan committed Nov 14, 2018
1 parent 5306d5e commit 62ef2fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/platforms/alink/adaptation/alink_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,5 +270,7 @@ void platform_msleep(_IN_ uint32_t ms)

uint32_t platform_get_time_ms(void)
{
return system_get_time() / 1000;
struct timeval now;
gettimeofday(&now, NULL);
return (now.tv_sec * 1000000 + now.tv_usec) / 1000;
}

0 comments on commit 62ef2fe

Please sign in to comment.