drop into debugger when things go wrong

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23107 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2007-12-10 22:04:34 +00:00
parent d246d9be88
commit b571493666

View File

@ -119,8 +119,8 @@ BTimeSource::PerformanceTimeFor(bigtime_t real_time)
bigtime_t last_real_time;
float last_drift;
while (GetTime(&last_perf_time, &last_real_time, &last_drift) != B_OK)
snooze(1);
if (GetTime(&last_perf_time, &last_real_time, &last_drift) != B_OK)
debugger("BTimeSource::PerformanceTimeFor: GetTime failed");
return last_perf_time + (bigtime_t)((real_time - last_real_time) * last_drift);
}
@ -140,8 +140,8 @@ BTimeSource::RealTimeFor(bigtime_t performance_time,
bigtime_t last_real_time;
float last_drift;
while (GetTime(&last_perf_time, &last_real_time, &last_drift) != B_OK)
snooze(1);
if (GetTime(&last_perf_time, &last_real_time, &last_drift) != B_OK)
debugger("BTimeSource::RealTimeFor: GetTime failed");
return last_real_time - with_latency + (bigtime_t)((performance_time - last_perf_time) / last_drift);
}