Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Mar 2003

    Some C Standard functions don't work


    I wanna use in my application a C function contained in the C standard library. The function is clock_t clock( void );
    It calculates the processor time used by the calling process
    It requires time.h.

    I've included in my mmp file the directory and the library (estlib.lib) needed to work with the C standard library.

    I guess that some functions like clock are not connected to the hardware so they cannot work.

    Someone have an idea about that?

  2. #2
    Registered User
    Join Date
    Jan 2005

    standard c function clock() is not working

    I am also facing the same issue. I have to use clock for caculating elapsed proceesor time. But it returns -1 on emulator and device (Nokia 6630). Seems like processor time is not available.

    I am using the time.h header file and estlib.lib for this function.
    If any body have any idea?

    Is there any other alternative for calculating the same. I tried RThread::GetCpuTime(). This is also not supported on nokia 6630.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts