/// <summary> /// 单例 /// </summary> /// <returns></returns> public static ClockUtil Instance() { if (s_Instance == null) { s_Instance = new ClockUtil(); s_Stopwatch = new Stopwatch(); return(s_Instance); } return(s_Instance); }
/// <summary> /// 获取当前时间(单位为秒)。 /// </summary> /// <returns>当前时间。</returns> protected override double GetNow() { return(ClockUtil.Instance().GetMillisecond() * 0.001); }