All pastes #2104576 Raw Edit

Mine

public text v1 · immutable
#2104576 ·published 2012-01-20 17:39 UTC
rendered paste body
/* KRONOMETRE

* Bu program Hüseyin Çakanlı tarafından 20.01.2012 tarihinde

* Örnek olarak Yazıldı.

* C# Express ile Test Edilmiştir.

*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            DateTime EskiTarih = DateTime.Now;
            int Ilksaniye = 0;
            
            //Sonsuz Döngü, istenirse değiştirilebilir.
            do {
              
            DateTime YeniTarih = DateTime.Now;

            // Difference in days, hours, and minutes.
            TimeSpan ts = YeniTarih - EskiTarih;

            // Difference in days.
            int Saniye = ts.Seconds;
            
               if (Saniye != ilksaniye)
                {
                    Console.Clear();
                    System.Console.WriteLine("Saniye : {0} ", Saniye);
               
                   Ilksaniye = Saniye;
                }
           

            } while (true);
                
            System.Console.ReadLine();

        }
    }
}