Replaced the more expensive calls to DateTime.Now with DateTime.UtcNow.
1.1 --- a/GUI/PlotPanel.cs Sun Jul 24 16:18:56 2011 +0000
1.2 +++ b/GUI/PlotPanel.cs Sun Jul 24 22:12:01 2011 +0000
1.3 @@ -155,7 +155,7 @@
1.4 }
1.5
1.6 protected override void OnPaint(PaintEventArgs e) {
1.7 - now = DateTime.Now - new TimeSpan(0, 0, 4);
1.8 + now = DateTime.UtcNow - new TimeSpan(0, 0, 4);
1.9
1.10 List<float> timeGrid = GetTimeGrid();
1.11 List<float> tempGrid = GetTemperatureGrid();
2.1 --- a/Hardware/Sensor.cs Sun Jul 24 16:18:56 2011 +0000
2.2 +++ b/Hardware/Sensor.cs Sun Jul 24 22:12:01 2011 +0000
2.3 @@ -134,7 +134,7 @@
2.4 }
2.5 } catch { }
2.6 if (values.Count > 0)
2.7 - AppendValue(float.NaN, DateTime.Now);
2.8 + AppendValue(float.NaN, DateTime.UtcNow);
2.9 }
2.10
2.11 private void AppendValue(float value, DateTime time) {
2.12 @@ -193,7 +193,7 @@
2.13 return currentValue;
2.14 }
2.15 set {
2.16 - DateTime now = DateTime.Now;
2.17 + DateTime now = DateTime.UtcNow;
2.18 while (values.Count > 0 && (now - values.First.Time).TotalDays > 1)
2.19 values.Remove();
2.20