Author: toshok
Date: 2007-06-19 13:12:46 -0400 (Tue, 19 Jun 2007)
New Revision: 80205
Modified:
trunk/moon/src/clock.cpp
Log:
more debug spew
Modified: trunk/moon/src/clock.cpp
===================================================================
--- trunk/moon/src/clock.cpp 2007-06-19 17:12:02 UTC (rev 80204)
+++ trunk/moon/src/clock.cpp 2007-06-19 17:12:46 UTC (rev 80205)
@@ -235,16 +235,16 @@
duration = timeline->GetDuration ();
if (duration->HasTimeSpan ()) {
+ natural_duration = *duration;
#if CLOCK_DEBUG
- printf ("Clock %p has a timespan based duration\n", this);
+ printf ("Clock %p (%s) has a timespan based duration of %llu\n",
this, Type::Find(timeline->GetObjectType())->name, natural_duration.GetTimeSpan
());
#endif
- natural_duration = *duration;
}
else {
+ natural_duration = timeline->GetNaturalDuration (this);
#if CLOCK_DEBUG
- printf ("Clock %p has NON-timespan based duration\n", this);
+ printf ("Clock %p (%s) has NON-timespan based duration, computed to
be %llu\n", this, Type::Find(timeline->GetObjectType())->name,
natural_duration.GetTimeSpan ());
#endif
- natural_duration = timeline->GetNaturalDuration (this);
}
current_progress = 0.0;
current_time = 0;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches