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
  • 3,866
  • 5
  • 31
  • 64

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
  • 9,365
  • 2
  • 34
  • 76