0

Is there a way to Load the kernel32.dll library in the Android NDK?

I'm trying to extract the GetTickCount and GetTickCount64 functions out of it, and I get this error when trying to run the LoadLibrary("KERNEL32.DLL"):

Function 'LoadLibrary' could not be resolved

Any suggestions to get the GetTickCount and GetTickCount64?

TooManyEduardos
  • 4,206
  • 7
  • 35
  • 66

1 Answers1

2

Android is Linux, not Windows. You need to use Linux APIs. Use clock_gettime instead of GetTickCount (example).

Community
  • 1
  • 1
Dan Albert
  • 10,079
  • 2
  • 36
  • 79