mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Initial const eval feature release
This commit is contained in:
parent
be929c3626
commit
ff1f8aff3f
27 changed files with 887 additions and 178 deletions
|
@ -148,6 +148,24 @@ public:
|
|||
~AutoPerfRecordAndPrint();
|
||||
};
|
||||
|
||||
class AutoTimer
|
||||
{
|
||||
public:
|
||||
uint32 mStartTick;
|
||||
int* mTimePtr;
|
||||
|
||||
public:
|
||||
AutoTimer(int& timeRef)
|
||||
{
|
||||
mTimePtr = &timeRef;
|
||||
mStartTick = BFTickCount();
|
||||
}
|
||||
|
||||
~AutoTimer()
|
||||
{
|
||||
*mTimePtr += BFTickCount() - mStartTick;
|
||||
}
|
||||
};
|
||||
|
||||
class DebugTimeGuard
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue