From: Caisking <3449750381@qq.com> Date: Sat, 20 Jan 2024 09:32:34 +0000 (+0800) Subject: 关闭测试打印 X-Git-Tag: release_V1.2.70_20241020_135402~1351^2~3 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=72f47954cf27abd66f43e1bb3a7d453a5aa27515;p=mirrors%2FFD230.git 关闭测试打印 --- diff --git a/code/sdk/application/wearable/nativeapp/nativeui/dial/include/Digital_clockView.h b/code/sdk/application/wearable/nativeapp/nativeui/dial/include/Digital_clockView.h index d5b4d55b1..9b861e8d9 100644 --- a/code/sdk/application/wearable/nativeapp/nativeui/dial/include/Digital_clockView.h +++ b/code/sdk/application/wearable/nativeapp/nativeui/dial/include/Digital_clockView.h @@ -84,6 +84,7 @@ namespace OHOS std::string stringtime; struct tm pTM; time_t seconds; + struct timespec Systime; public: explicit timeLableCallback(UILabel *timeLable, UILabel *dateLable, UILabel *weekLable) : timeLable(timeLable), dateLable(dateLable), weekLable(weekLable) @@ -94,6 +95,12 @@ namespace OHOS virtual void Callback(UIView *view) override { /* --------------------------------- 时间 --------------------------------- */ +#if 0 + clock_gettime(CLOCK_MONOTONIC, &Systime); + int SystemTime = Systime.tv_sec; + printf("--getSystemTime::%d--\n", SystemTime); + clock_settime(CLOCK_MONOTONIC, &pTM); +#endif // 获取系统时间 time(&seconds); localtime_r(&seconds, &pTM);