○時間の取得
using System;
class Class1
{
Class1()
{
//現在の0001 年 1 月 1 日午前 12:00 から経過した 100 ナノ秒間隔の数を取得
long tick=DateTime.Now.Ticks;
DateTime d=new DateTime(tick);
Console.WriteLine(d.ToString());
}
static void Main(string[] args)
{
Class1 obj=new Class1();
Console.Read();
}
}
処理結果
2004/07/06 00:02:38