Use monotonic clock source for Windows in oic_time
authorDavid Antler <david.a.antler@intel.com>
Tue, 21 Jun 2016 22:29:43 +0000 (15:29 -0700)
committerJon A. Cruz <jon@joncruz.org>
Thu, 21 Jul 2016 19:44:48 +0000 (19:44 +0000)
commit7e0e5d086bcb05334e46d3dacda8b237a3c64f8b
tree9673db0fbe4d5f90ae30709272eb84f9d72badd0
parent4400d1c59ffa755272c8c64b8fb9bd0252723dd4
Use monotonic clock source for Windows in oic_time

Amend documentation of OICGetCurrentTime() function.

We must replace our GetSystemTimeAsFileTime API call because system
time updates should not impact our calculations. We should assume that
system time can change during the runtime of our programs.

Change-Id: I49246a243435f8b0b2bf7a77fcb31378dc921daf
Signed-off-by: David Antler <david.a.antler@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9333
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
resource/c_common/SConscript
resource/c_common/oic_time/include/oic_time.h
resource/c_common/oic_time/src/oic_time.c