Current Time Micros - CSharp System

CSharp examples for System:DateTime Timestamp

Description

Current Time Micros

Demo Code


using System.Runtime.InteropServices;
using System;/*from w w w.java  2  s.  c  o m*/

public class Main{
        public static long CurrentTimeMicros()
        {
            //return HighResTicksProvider.GetTickCount () / 10L; // it's microsecond precise
            return DateTime.Now.Ticks/10L; // it's millisecond precise
        }
}

Related Tutorials