Better name

Timeit.Stopwatch -> Stopwatch.Normal
Timeit.StopwatchDebug -> Stopwatch.Debug
This commit is contained in:
bao-qian
2015-11-04 21:49:36 +00:00
parent df0f310ddd
commit 59a4abff7c
7 changed files with 20 additions and 16 deletions

View File

@@ -29,7 +29,7 @@ namespace Wox
protected override void OnStartup(StartupEventArgs e)
{
Timeit.StopwatchDebug("Startup Time", () =>
Stopwatch.Debug("Startup Time", () =>
{
base.OnStartup(e);
DispatcherUnhandledException += ErrorReporting.DispatcherUnhandledException;

View File

@@ -8,6 +8,7 @@ using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using Wox.Infrastructure;
using Stopwatch = Wox.Infrastructure.Stopwatch;
namespace Wox.ImageLoader
{
@@ -57,7 +58,7 @@ namespace Wox.ImageLoader
{
//ImageCacheStroage.Instance.TopUsedImages can be changed during foreach, so we need to make a copy
var imageList = new Dictionary<string, int>(ImageCacheStroage.Instance.TopUsedImages);
Timeit.StopwatchDebug($"Preload {imageList.Count} images", () =>
Stopwatch.Debug($"Preload {imageList.Count} images", () =>
{
foreach (var image in imageList)
{
@@ -82,7 +83,7 @@ namespace Wox.ImageLoader
{
if (string.IsNullOrEmpty(path)) return null;
ImageSource img = null;
Timeit.StopwatchDebug($"Loading image path: {path}", () =>
Stopwatch.Debug($"Loading image path: {path}", () =>
{
if (addToCache)

View File

@@ -20,6 +20,7 @@ using Wox.Helper;
using Wox.Infrastructure;
using Wox.Plugin;
using Application = System.Windows.Forms.Application;
using Stopwatch = Wox.Infrastructure.Stopwatch;
namespace Wox
{
@@ -329,7 +330,7 @@ namespace Wox
private void OnThemeTabSelected()
{
Timeit.StopwatchDebug("theme load", () =>
Stopwatch.Debug("theme load", () =>
{
var s = Fonts.SystemFontFamilies;
});