netd: note clock_arch check to do
authorAlan Cox <alan@linux.intel.com>
Fri, 3 Nov 2017 23:40:28 +0000 (23:40 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 3 Nov 2017 23:40:28 +0000 (23:40 +0000)
Applications/netd/clock-arch.c

index 596017e..26ade45 100644 (file)
 clock_time_t
 clock_time(void)
 {
-  struct timeval tv;
-  struct timezone tz;
-
-  //  gettimeofday(&tv, &tz);
   struct{
       uint16_t high;
       uint16_t low;
   }now;
   _time((__ktime_t *)&now,1);
+  /* FIXME: needs a multiplier to turn into ms FIXME */
   return now.low;
   //  return tv.tv_sec * 1000 + tv.tv_usec / 1000;
 }