fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static int Ret()
  6. {
  7. return -1;
  8. }
  9.  
  10. public static void Main()
  11. {
  12. DateTime fin = DateTime.Now.AddSeconds(3);
  13. int i = 0;
  14. while (DateTime.Now < fin)
  15. {
  16. try
  17. {
  18. Ret();
  19. }
  20. catch
  21. {
  22. }
  23. i++;
  24. }
  25. Console.WriteLine("{0} times", i);
  26. }
  27. }
Success #stdin #stdout 3s 36936KB
stdin
Standard input is empty
stdout
10879555 times