class Program
{
static void Main(string[] args)
{
Console.WriteLine("线程已开启:");
Thread workerThread = new Thread(new ThreadStart(WorkerMethod));
workerThread.Start();
}
static void WorkerMethod()
{
for (int i = 0; i < 20; i++)
{
Console.WriteLine("打印出的数字为:[{0}]",DateTime.Now.ToString("yyyy-MM-dd HH:mm"));
Thread.Sleep(60000);
}
}
}