摘要: 主要用到了win32里面的 QueryPerformanceCounter和QueryPerformanceFrequency两个函数 文档链接:https://docs.microsoft.com/zh-cn/windows/win32/api/profileapi/nf-profileapi-q 阅读全文
posted @ 2021-08-21 09:45 晨晞gg 阅读(298) 评论(0) 推荐(0) 编辑
摘要: <!--列的文本居中--> <Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}"> <Setter Property="HorizontalAlignment" Value="Center" /> < 阅读全文
posted @ 2021-08-20 21:36 晨晞gg 阅读(2580) 评论(1) 推荐(0) 编辑
摘要: 今天看到工程里有关DateTime的有关知识,之前了解一些用法,比如怎么获取年月日,当前系统时间等等,但是,感觉还是有好多不知道,于是上网搜罗了一下,找到很多有关知识,现在与大家分享下: DateTime.Now.ToShortTimeString() DateTime dt = DateTime. 阅读全文
posted @ 2021-08-20 20:40 晨晞gg 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 生成有序的数组: 方法一: List<int> numList1 = new List<int>(); for (int i = 0; i < 1000; i++) { numList1.Add(i); } View Code 方法二: 使用Linq,推荐日常使用 List<int> numList 阅读全文
posted @ 2021-08-19 11:51 晨晞gg 阅读(793) 评论(0) 推荐(0) 编辑