Sleep.cs 829 B

12345678910111213141516171819202122232425262728293031
  1. //************************************************************************
  2. // author: yuzhengyang
  3. // date: 2018.3.27 - 2018.6.3
  4. // desc: 工具描述
  5. // Copyright (c) yuzhengyang. All rights reserved.
  6. //************************************************************************
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Text;
  11. namespace Azylee.Core.ThreadUtils.SleepUtils
  12. {
  13. public static class Sleep
  14. {
  15. /// <summary>
  16. /// Sleep(单位:秒)
  17. /// </summary>
  18. public static void S(short s)
  19. {
  20. SleepTool.Zs(s);
  21. }
  22. /// <summary>
  23. /// Sleep(单位:分)
  24. /// </summary>
  25. public static void M(short m)
  26. {
  27. SleepTool.Zm(m);
  28. }
  29. }
  30. }