/// <summary> /// /// </summary> /// <param name="memory"></param> public void ClearMemoryHisData(MarshalMemoryBlock memory) { Stopwatch sw = new Stopwatch(); sw.Start(); memory.Clear(); memory.WriteByteDirect(0, 0); //foreach(var vv in mHisTags) //{ // vv.Value.ClearDataValue(memory); //} sw.Stop(); LoggerService.Service.Info("Record", "清空数据区耗时:" + sw.ElapsedMilliseconds); }