Get Total Nanoseconds - CSharp System

CSharp examples for System:DateTime Second

Description

Get Total Nanoseconds

Demo Code


using System;/*from w ww.  j av  a 2s. co  m*/

public class Main{
        /// <summary>
	/// 
	/// </summary>
	/// <param name="DateTime"></param>
	/// <returns></returns>
	public static long GetTotalNanoseconds(this DateTime DateTime)
	{
		return DateTime.Ticks * 10;
	}
}

Related Tutorials