-
大小: 0.07M文件類型: .zip金幣: 1下載: 0 次發(fā)布日期: 2020-12-14
- 語言: C#
- 標(biāo)簽: 高精度??計(jì)時(shí)器??C#??
資源簡(jiǎn)介
該例子實(shí)現(xiàn)了高精度定時(shí)器功能,最高定時(shí)精度為1ms
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?HighTimer;
namespace?test1
{
????public?partial?class?Form1?:?Form
????{
????????//定時(shí)次數(shù)
????????int?times?=?0;
????????//高精度定時(shí)器
????????HighAccurateTimer?timer1?=?new?HighAccurateTimer();
????????public?Form1()
????????{
????????????InitializeComponent();
????????????//定時(shí)器初始化
????????????timer1.Interval?=?5;
????????????timer1.Enabled?=?false;
????????????timer1.Elapsed?+=?TestTimerElapse;
????????}
????????private?void?TestTimerElapse(object?sender?TimerEventArgs?e)
????????{
????????????this.times++;
????????????//throw?new?NotImplementedException();
????????}
????
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-01-06?21:37??test1\
?????目錄???????????0??2016-01-06?20:58??test1\bin\
?????目錄???????????0??2016-01-06?21:22??test1\bin\Debug\
?????文件???????11776??2016-01-06?21:37??test1\bin\Debug\test1.exe
?????文件???????32256??2016-01-06?21:37??test1\bin\Debug\test1.pdb
?????文件???????22704??2016-01-06?20:56??test1\bin\Debug\test1.vshost.exe
?????文件?????????490??2015-06-04?12:48??test1\bin\Debug\test1.vshost.exe.manifest
?????目錄???????????0??2016-01-06?20:58??test1\bin\Release\
?????文件????????1942??2016-01-06?21:37??test1\Form1.cs
?????文件????????3209??2016-01-06?21:19??test1\Form1.Designer.cs
?????文件????????5817??2016-01-06?21:19??test1\Form1.resx
?????文件????????4522??2016-01-06?20:58??test1\HighAccurateTimer.cs
?????目錄???????????0??2016-01-06?20:56??test1\obj\
?????目錄???????????0??2016-01-06?21:37??test1\obj\Debug\
?????文件????????6798??2016-01-06?20:58??test1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????目錄???????????0??2016-01-06?20:56??test1\obj\Debug\TempPE\
?????文件?????????554??2016-01-06?21:22??test1\obj\Debug\test1.csproj.FileListAbsolute.txt
?????文件?????????847??2016-01-06?21:22??test1\obj\Debug\test1.csproj.GenerateResource.Cache
?????文件????????1759??2016-01-06?21:22??test1\obj\Debug\test1.csprojResolveAssemblyReference.cache
?????文件???????11776??2016-01-06?21:37??test1\obj\Debug\test1.exe
?????文件?????????180??2016-01-06?21:22??test1\obj\Debug\test1.Form1.resources
?????文件???????32256??2016-01-06?21:37??test1\obj\Debug\test1.pdb
?????文件?????????180??2016-01-06?21:22??test1\obj\Debug\test1.Properties.Resources.resources
?????文件?????????486??2016-01-06?20:56??test1\Program.cs
?????目錄???????????0??2016-01-06?20:56??test1\Properties\
?????文件????????1352??2016-01-06?20:56??test1\Properties\AssemblyInfo.cs
?????文件????????2862??2016-01-06?20:56??test1\Properties\Resources.Designer.cs
?????文件????????5612??2016-01-06?20:56??test1\Properties\Resources.resx
?????文件????????1092??2016-01-06?20:56??test1\Properties\Settings.Designer.cs
?????文件?????????249??2016-01-06?20:56??test1\Properties\Settings.settings
?????文件????????3726??2016-01-06?21:22??test1\test1.csproj
............此處省略4個(gè)文件信息
評(píng)論
共有 條評(píng)論