摘要:
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
荔枝不吃籽
閱讀(48)
評論(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號