diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-22 14:29:39 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-22 14:29:39 +0200 |
| commit | bc12a8d14fd559918c1ed97ed8f2cc5c8c9043c7 (patch) | |
| tree | 701db5c44acd4bd8c81f0ff8579677fac6b359b3 /src/Interface.cs | |
| parent | f662d49464e2b8326522aad67761ffdcb8a5e5f6 (diff) | |
debug, combo improvments
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 13 |
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; } |