title: C# DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() Always Get Same Data in short period
body: <p>Example Code:<br />
  .net core 3</p>
  <pre><code>await Task.Delay( 1000 );
  
  Console.WriteLine( &quot;Hello World!!!!!!!!!&quot; + DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() );
  
  await Task.Delay( 1000 );
  
  Console.WriteLine( &quot;Hello World!!!!!!!!!&quot; + DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() );
  
  Console.WriteLine( &quot;Hello World!!!!!!!!!&quot; + DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() );
  
  Console.WriteLine( &quot;Hello World!!!!!!!!!&quot; + DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() );
  
  Console.WriteLine( &quot;Hello World!!!!!!!!!&quot; + DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() );
  
  Console.WriteLine( &quot;Hello World!!!!!!!!!&quot; + DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() );
  
  await Task.Delay( 1000 );
  
  Console.WriteLine( &quot;Hello World!!!!!!!!!&quot; + DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() );
  
  Console.WriteLine( &quot;Hello World!!!!!!!!!&quot; + DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() );
  
  Console.WriteLine( &quot;Hello World!!!!!!!!!&quot; + DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() );
  
  Console.WriteLine( &quot;Hello World!!!!!!!!!&quot; + DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() );
  </code></pre>
  <p>Expect to get different number , but all the same if without any delay.</p>
  <p>I wonder how could this happened?
  <img src="https://i.stack.imgur.com/hJJRg.png" alt="testPicture" /></p>