Simplified OICGetCurrentTime() implementation.
Restructured the OICGetCurrentTime() implementation to remove two
unnecessary variables. This allows us to drop a run-time conditional
in the _POSIX_MONOTONIC_CLOCK == 0 case, as well as fix an "unused
variable" compile-time warning. Include directives were also cleaned
up to the minimum needed.
Change-Id: I8f478c08310a74ad642aad5b45f9fc3310b102de
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4249
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>