Ta android + ios

This commit is contained in:
LYP
2024-08-07 20:22:28 +08:00
parent 69fee08c61
commit 76458664d8
722 changed files with 41709 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
using System;
using ThinkingSDK.PC.Config;
using ThinkingSDK.PC.Utils;
namespace ThinkingSDK.PC.Time
{
public class ThinkingSDKTimestampCalibration : ThinkingSDKTimeCalibration
{
public ThinkingSDKTimestampCalibration(long timestamp)
{
DateTime dateTimeUtcNow = DateTime.UtcNow;
this.mStartTime = timestamp;
this.mSystemElapsedRealtime = Environment.TickCount;
double time_offset = (ConvertDateTimeInt(dateTimeUtcNow) - timestamp) / 1000;
if (ThinkingSDKPublicConfig.IsPrintLog()) ThinkingSDKLogger.Print("Time Calibration with NTP (" + timestamp + "), diff = " + time_offset.ToString("0.000s"));
}
}
}