refactoring stopwatch

This commit is contained in:
bao-qian
2016-11-30 00:31:31 +00:00
parent b43c6c00bb
commit a22ca5b57f
4 changed files with 13 additions and 10 deletions

View File

@@ -176,7 +176,7 @@ namespace Wox.Core.Plugin
try
{
var metadata = pair.Metadata;
var milliseconds = Stopwatch.Normal($"Plugin.Query cost for {metadata.Name}", () =>
var milliseconds = Stopwatch.Debug($"Plugin.Query cost for {metadata.Name}", () =>
{
results = pair.Plugin.Query(query) ?? results;
UpdatePluginMetadata(results, metadata, query);