diff --git a/services/time_manager/src/time_service.cpp b/services/time_manager/src/time_service.cpp index 9ce6945..33a0598 100644 --- a/services/time_manager/src/time_service.cpp +++ b/services/time_manager/src/time_service.cpp @@ -569,8 +569,6 @@ bool TimeService::GetTimeByClockid(clockid_t clk_id, struct timespec &tv) TIME_HILOGE(TIME_MODULE_SERVICE, "Failed clock_gettime."); return false; } - auto times = tv.tv_sec * NANO_TO_BASE + tv.tv_nsec; - TIME_HILOGD(TIME_MODULE_SERVICE, "Clock ID: %{public}d", clk_id); return true; } void TimeService::NetworkTimeStatusOff()