This commit is contained in:
yuanyuanxiang
2025-10-26 18:57:45 +08:00
parent 8ed23cc8dc
commit 2855af1932
5 changed files with 27 additions and 3 deletions

View File

@@ -87,6 +87,23 @@ public:
}
};
class CAutoCLock
{
private:
CLock& m_cs;
public:
CAutoCLock(CLock& cs) : m_cs(cs)
{
m_cs.Lock();
}
~CAutoCLock()
{
m_cs.Unlock();
}
};
// 智能计时器,计算函数的耗时
class auto_tick
{