mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
Better name
Timeit.Stopwatch -> Stopwatch.Normal Timeit.StopwatchDebug -> Stopwatch.Debug
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user