yangyin
2025-02-24 b3b65a002fe68b1383314098790f5a153b87765f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#region Imports
 
using System;
using System.ComponentModel;
using System.Windows.Forms;
 
#endregion
 
namespace DPumpHydr.WinFrmUI.RLT.Controls
{
    #region ParrotSleeper
 
    public class ParrotSleeper : Component
    {
        public void Sleep(int Milliseconds)
        {
            DateTime Time = DateTime.Now.AddMilliseconds(Milliseconds);
 
            while (DateTime.Now < Time)
            {
                Application.DoEvents();
            }
        }
    }
 
    #endregion
}