(C++) GetTickCount by External

Created the Wednesday 22 June 2022. Updated 1 year, 9 months 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;
}