Log in or register to post comments


June 20, 2011 - 9:54am #1

I wanted to insert a timer in my FrameMarkers.cpp, but there are errors because types and functions of the times.h are not declared (errormessage). I included the times.h, but the the errors are still there. Here is a code snippet:

Java_com_qualcomm_QCARSamples_FrameMarkers_FrameMarkersRenderer_renderFrame(JNIEnv *env, jobject obj)
    // Clear color and depth buffer 

   // int j = 0;
    // Render video background:
    QCAR::State state = QCAR::Renderer::getInstance().begin();

    // Did we find any trackables this frame?
    for(int tIdx = 0; tIdx < state.getNumActiveTrackables(); tIdx++){

some code

 clock_t endwait;
    	 endwait = clock()  + 2 * CLOCKS_PER_SEC;
    	  while (clock() < endwait) {}




Anybody knows why the errors are still there??

Thanks Stephan

Re: C-Timer

June 21, 2011 - 1:49am #3

Ok, i thought this before.

But the ctime.h is in the folder (C:\Development\Android\android-ndk-r5b\sources\cxx-stl\system\include). I checked this before but it doesn´t work when i include ctime.h.


Re: C-Timer

June 20, 2011 - 6:53pm #2

The Android NDK does not support all the standard C++ libraries. I would ask this question in the Android forums (or search there for a compatible timer).

- Kim

Log in or register to post comments