public void Split_Timer(Stopwatch Timer, ref string Time) { int t = Timer.Elapsed.Milliseconds; int Min, Sec, Mill; Min = t / (60 * 1000); t = t - (Min * 60000); Sec = t / 1000; t = t - (Sec * 1000); Mill = t; if (Min <= 9) { Time = "0" + Min; } else { Time = Min.ToString(); } Time = Time + " : "; if (Sec <= 9) { Time = Time + "0" + Sec; } else { Time = Time + Sec.ToString(); } Time = Time + " : "; if (Mill <= 9) { Time = Time + "0" + Mill; } else { Time = Time + Mill.ToString(); } }