我如何舍入以在毫秒内仅获得一位数字?
我尝试了此链接中的一些解决方案,但没有一个解决方案:Can you round a .NET TimeSpan object?
00:23:01.4999890 -> 00:23:01.5
15:02:02.9999785 -> 15:02:03.0
08:03:59.9605388 -> 08:04:00.0
03:16:00.8605388 -> 03:16:00.9
19:12:01.8420745 -> 19:12:01.8
04:05:03.8417271 -> 04:05:03:8
Run Code Online (Sandbox Code Playgroud)