计算两个时间之间的微妙差数。
1秒=1000000微妙
TTime beforetime;
beforetime.HomeTime();
User::After(1000000);
TTime aftertime;
aftertime.HomeTime();
TTimeIntervalMicroSeconds interval_ms;
TTimeIntervalSeconds interval_sec;
aftertime.SecondsFrom(beforetime, interval_sec);
interval_ms = aftertime.MicroSecondsFrom(beforetime);
TInt64 ms;
TInt sec;
sec = interval_sec.Int();
ms = interval_ms.Int64();
TBuf<120> bNum;
bNum.Append(_L("----------------- : "));
bNum.AppendNum(ms);
DBGPRINTF(bNum); //是打印语句。