// Calculates the unit conversion factors for time (seconds <-> milliseconds)
 public double GetTimeUnitConversionFactor(ControlEnums.TIMEUNITS unit)
 {
     if (unit == ControlEnums.TIMEUNITS.SECONDS)
     {
         return(1.0 / 1000.0);
     }
     return(1.0);
 }
 // Sets the unit conversion factor for time (milliseconds <-> seconds), for either axis mapper
 public void CalculateTimeUnitConversion(CartesianMapper <GraphingEntry> mapper, ControlEnums.TIMEUNITS unit, bool xAxis)
 {
     if (xAxis)
     {
         mapper.X(entry => entry.uptime * GetTimeUnitConversionFactor(unit));
     }
     else
     {
         mapper.Y(entry => entry.uptime * GetTimeUnitConversionFactor(unit));
     }
 }