| 123456789101112131415161718192021222324252627282930313233 |
- //************************************************************************
- // author: yuzhengyang
- // date: 2018.3.27 - 2018.6.3
- // desc: 工具描述
- // Copyright (c) yuzhengyang. All rights reserved.
- //************************************************************************
- using System;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.Linq;
- using System.Text;
- using System.Threading;
- namespace Azylee.Core.ThreadUtils.SleepUtils
- {
- public static class SleepTool
- {
- /// <summary>
- /// Sleep(单位:秒)
- /// </summary>
- public static void Zs(short s = 1)
- {
- try { Thread.Sleep(s * 1000); } catch { }
- }
- /// <summary>
- /// Sleep(单位:分)
- /// </summary>
- public static void Zm(short m = 1)
- {
- try { Thread.Sleep(m * 60 * 1000); } catch { }
- }
- }
- }
|