static void Main(string[] args) { AwaiterHelper helper = new AwaiterHelper(); helper.RunByMillis(1000).Wait(); helper.RunBysecondes(2).Wait(); helper.RunProcess("notepad").Wait(); }