fix #185. Loading index cache on startup.

This commit is contained in:
qianlifeng
2014-12-15 22:58:49 +08:00
parent 32867d3666
commit 82106c1c8b
20 changed files with 233 additions and 56 deletions

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace Wox.Infrastructure
{
public class Timeit : IDisposable
{
private Stopwatch stopwatch = new Stopwatch();
private string name;
public Timeit(string name)
{
this.name = name;
stopwatch.Start();
}
public void Dispose()
{
stopwatch.Stop();
Debug.WriteLine(name + ":" + stopwatch.ElapsedMilliseconds + "ms");
}
}
}