# 性能

1 篇文章

C# 语言

C# 计算代码运行时间

Stopwatch 和 DateTime 相减两种办法,为什么测性能该用 Stopwatch,以及想认真比较两段代码快慢时该用 BenchmarkDotNet。

2021 年 6 月 9 日 · 1 分钟读完