其实在C#中要实现这个很简单,只要运用DateTime.Now记下程序开始和结束的时间再相减就行了。语法如下: [code lang=”csharp”] DateTime startTime=DateTime.Now; …… DateTime endTime=DateTime.Now; Console.WriteLine("程序运行的时间是:{0}",(endTime-startTime)); [/code] 例如我们可以用这个方法测试采用装箱和不装箱两种情况哪个效率更高 运行结果: Continue reading...
Prove Logs on Blockchain with Go and ProvenDB
It’s been a long time since my last blog post. Here is my recent one on Medium: ProvenLogs is a simple yet performant logging service built…