摘要:
1.引用 using System.IO; 2.创建并写 public void WriteTxt(string filepth, string str) { FileStream fs1 = new FileStream(filepth, FileMode.Create, FileAccess.R 阅读全文
posted @ 2024-03-02 10:07
荔枝不吃籽
阅读(49)
评论(0)
推荐(0)
摘要:
StopWatch类计时(误差在2ms以内) StopWatch可以测量一个间隔的已用时间,或跨多个间隔测量已用总时间。 public static void getTime() { Stopwatch stopWatch = new Stopwatch(); //初始化 TimeSpan ts = 阅读全文
posted @ 2024-03-02 09:56
荔枝不吃籽
阅读(37)
评论(0)
推荐(0)

浙公网安备 33010602011771号