public static void loadSaveStructure(ClockSave data) { previousTime = new TimeSpan(data.hours, data.minutes, data.seconds); gameStartTime = DateTime.Now; }
public static string formatTimeSpan(ClockSave total) { return String.Format("{0:00}:{1:00}:{2:00}", (total.hours), total.minutes, total.seconds); }