Thread: C time library

  1. #1
    Registered User
    Join Date
    Apr 2017
    Location
    Iran
    Posts
    138

    C time library

    Hi,

    Is there any library to measure time in C ?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    What sort of time?

    Wall clock time functions are in time.h

    High precision timers depend on your OS or platform.

    Elapsed CPU time is another thing, crudely measured with clock().
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Apr 2017
    Location
    Iran
    Posts
    138
    Quote Originally Posted by Salem View Post
    What sort of time?

    Wall clock time functions are in time.h

    High precision timers depend on your OS or platform.

    Elapsed CPU time is another thing, crudely measured with clock().
    I wanted time with milliseconds precision which this link seems to explain.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 01-03-2014, 04:39 PM
  2. What time.h library provide us?
    By brack in forum C Programming
    Replies: 11
    Last Post: 09-04-2010, 12:55 AM
  3. undefined symbol error during linnk time of library
    By quickNitin in forum C++ Programming
    Replies: 7
    Last Post: 09-01-2006, 10:06 AM
  4. Visual C++ 2005 Express: Run Time Library
    By Rune Hunter in forum C++ Programming
    Replies: 4
    Last Post: 11-13-2005, 06:47 PM
  5. _beginthread & c run-time library
    By Hermitsky in forum C++ Programming
    Replies: 6
    Last Post: 12-15-2004, 05:57 AM

Tags for this Thread