|
//计时开始
resbuf StartTime;
acedGetVar(_T("TDUSRTIMER"), &StartTime);
static ads_real GetTimeCost(const resbuf &StartTime)
{
//计时结束
resbuf EndTime;
acedGetVar(_T("TDUSRTIMER"), &EndTime);
ads_real UserTime;
UserTime = 86400.0 * (EndTime.resval.rreal - StartTime.resval.rreal);
TCHAR ChTime[50];
acdbRToS(UserTime, 2, 8, ChTime);
//显示用时
acutPrintf(_T("\n这段ARX插件用时: %s 秒"), ChTime);
return UserTime;
} |
|