原文:https://blog.csdn.net/xzjxylophone/article/details/6832160
方法一:Stopwatch类(System.Diagnostics) (我喜欢)
方法二:利用System.DateTime.Now