Untitled

 avatar
unknown
csharp
2 years ago
354 B
1
Indexable
using System;
using System.Threading;

class Program {
    static void Main(string[] args) {
        Thread t = new Thread(PrintTime);
        t.Start();
        Console.ReadLine();
    }

    static void PrintTime() {
        while (true) {
            Console.WriteLine(DateTime.Now);
            Thread.Sleep(1000);
        }
    }
}