Xamarin.forms用于ios的跨平台秒表
我对移动发展完全陌生。我需要一个秒表的例子。我的项目基于跨平台的xamarin.forms,并以ios为主要平台。请帮帮我!谢谢 是一个很好的资源,在那里你可以找到你需要的一切,而且在大多数情况下都有例子 从.NET API浏览器:Xamarin.forms用于ios的跨平台秒表,xamarin.forms,stopwatch,Xamarin.forms,Stopwatch,我对移动发展完全陌生。我需要一个秒表的例子。我的项目基于跨平台的xamarin.forms,并以ios为主要平台。请帮帮我!谢谢 是一个很好的资源,在那里你可以找到你需要的一切,而且在大多数情况下都有例子 从.NET API浏览器: using System; using System.Diagnostics; using System.Threading; class Program { static void Main(string[] args) { Sto
using System;
using System.Diagnostics;
using System.Threading;
class Program
{
static void Main(string[] args)
{
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
Thread.Sleep(10000);
stopWatch.Stop();
// Get the elapsed time as a TimeSpan value.
TimeSpan ts = stopWatch.Elapsed;
// Format and display the TimeSpan value.
string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
ts.Hours, ts.Minutes, ts.Seconds,
ts.Milliseconds / 10);
Console.WriteLine("RunTime " + elapsedTime);
}
}
可以找到完整的文档
注:链接I共享目标.NET标准2.0