Watch time

Posted 扎克伯格

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Watch time相关的知识,希望对你有一定的参考价值。

 1    Stopwatch watch = new Stopwatch();
 2             watch.Start();
 3           
 4             for (int i = 0; i <= 9; i++)
 5             {
 6                 for (int j = 0; j <= 9; j++)
 7                 {
 8                     for (int k = 0; k <= 9; k++)
 9                     {
10                         for (int m = 0; m <= 9; m++)
11                         {
12                             if (i + "" + j + "" + k + "" + m == "8549")
13                             {
14                                 watch.Stop();
15 
16                                 // Get the elapsed time as a TimeSpan value.
17                                 TimeSpan ts = watch.Elapsed;
18 
19                                 // Format and display the TimeSpan value.
20                                 string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
21                                     ts.Hours, ts.Minutes, ts.Seconds,
22                                     ts.Milliseconds / 10);
23                                 Console.WriteLine("RunTime " + elapsedTime);
24                                 Console.ReadLine();
25                             }
26                            
27                             
28                         }
29                     }
30                 }

 

以上是关于Watch time的主要内容,如果未能解决你的问题,请参考以下文章

Watch time

A 8b Time-Interleaved Time-Domain ADC with Input-Independent Background Timing Skew Calibration(代码片段

1 代码片段1

学习笔记:python3,代码片段(2017)

对于 Watch Complication 和 Time Travel,getTimelineEntriesForComplication 经常被(太)调用

如何计算破折号媒体片段名称的 $Time$ 变量?