(C++) GetTickCount by External

Created the Wednesday 22 June 2022. Updated 5 months, 1 week ago.

Description:

Original code available here: https://anti-debug.checkpoint.com/techniques/timing.html#kernel-timing

Code

            bool IsDebugged(DWORD dwNativeElapsed)
{
    DWORD dwStart = GetTickCount();
    // ... some work
    return (GetTickCount() - dwStart) > dwNativeElapsed;
}