[f-spot: 38/40] Add a loading timer
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot: 38/40] Add a loading timer
- Date: Wed, 24 Jun 2009 09:50:53 +0000 (UTC)
commit 87862cb4eeb1e3d2f260fb76f2f4561c76284f0e
Author: Stephane Delcroix <stephane delcroix org>
Date: Wed Jun 24 09:37:18 2009 +0200
Add a loading timer
src/PhotoImageView.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/PhotoImageView.cs b/src/PhotoImageView.cs
index a938f3d..6885604 100644
--- a/src/PhotoImageView.cs
+++ b/src/PhotoImageView.cs
@@ -194,9 +194,11 @@ namespace FSpot.Widgets {
#endregion
#region loader
+ uint timer;
ImageLoader loader;
void Load (Uri uri)
{
+ timer = Log.DebugTimerStart ();
if (loader != null)
loader.Dispose ();
@@ -240,6 +242,7 @@ namespace FSpot.Widgets {
void HandleDone (object sender, System.EventArgs args)
{
+ Log.DebugTimerPrint (timer, "Loading image took {0}");
ImageLoader loader = sender as ImageLoader;
if (loader != this.loader)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]