Skip to content

Instantly share code, notes, and snippets.

@alastorid
Created January 15, 2021 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alastorid/ecaeba6b3f2a521c25b28efd81ac0a2d to your computer and use it in GitHub Desktop.
Save alastorid/ecaeba6b3f2a521c25b28efd81ac0a2d to your computer and use it in GitHub Desktop.
get SystemTime the hacker way
#include <stdio.h>
// windows only
#define GetTime() (*(volatile unsigned long*)0x7ffe0014)
int main()
{
printf("enter q to leave\n");
do
{ //KSYSTEM_TIME
printf("SystemTime = %ld", GetTime());
}while('q' != getchar());
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment