using System.Diagnostics;
using System.Threading.Tasks;
public static void Main(string[] args)
var stp = new Stopwatch();
Console.WriteLine("Total time to " + stp.Elapsed);
Console.WriteLine("All task executed");
private static Task DoSomething()
return Task.WhenAll(t1, t2);
private static Task DoSomething2()
Console.WriteLine("DoSomethign 2");
private static Task DoSomething3()
Console.WriteLine("DoSomethign 3");