title: How to Convert the Current Time to milliseconds in Visual Studio?
body: <p>I am trying to convert the current time (system time) in to milliseconds ...is  there any inbuilt functions i can use to solve this easily . </p>
  
  <p>For example i have used the following code to get the time and display it.</p>
  
  <pre><code>System.Diagnostics.Debug.WriteLine("Time "+ String.Format("{0:mm:ss.fff}",DateTime.Now));
  </code></pre>
  
  <p>The output i get is </p>
  
  <blockquote>
    <p>Time 36:50.527</p>
  </blockquote>
  
  <p>as in minutes:seconds.milliseconds</p>
  
  <p>I need to convert the time i got now in to Milliseconds.</p>