Esempio n. 1
0
        private void SetTimerText()
        {
            TimeSpan t      = stopwatch.GetTime();
            string   answer = string.Format("{0:D2}m:{1:D2}s:{2:D3}ms",
                                            t.Minutes,
                                            t.Seconds,
                                            t.Milliseconds);

            label1.Text = answer;
        }