aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Interface.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Interface.cs')
-rw-r--r--src/Interface.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Interface.cs b/src/Interface.cs
index 551cd1d3..f988a17a 100644
--- a/src/Interface.cs
+++ b/src/Interface.cs
@@ -146,6 +146,11 @@ namespace go
}
public static GraphicObject Load(Stream stream, Type type, object hostClass = null, bool resolve = true)
{
+ #if DEBUG_LOAD_TIME
+ Stopwatch loadingTime = new Stopwatch ();
+ loadingTime.Start ();
+ #endif
+
GraphicObject result;
@@ -168,6 +173,14 @@ namespace go
if (resolve)
resolveGOML (hostClass);
+ #if DEBUG_LOAD_TIME
+ loadingTime.Stop ();
+ Debug.WriteLine("GOML Loading ({2}): {0} ticks \t, {1} ms",
+ loadingTime.ElapsedTicks,
+ loadingTime.ElapsedMilliseconds,
+ CurrentGOMLPath);
+ #endif
+
return result;
}