//Rextester.Program.Main is the entry point for your code. Don't change it.
//Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Diagnostics;
namespace Rextester
{
public class Program
public static void Main(string[] args)
var iterations = 10000;
var sw = Stopwatch.StartNew();
for(var i= 0; i < iterations; ++i)
DateTime.Now.ToString();
sw.Stop();
Console.WriteLine("Time taken: {0}ms", sw.Elapsed.TotalMilliseconds);
sw = Stopwatch.StartNew();
DateTime.UtcNow.ToString();
}
Time taken: 26,6656ms Time taken: 11,8889ms