timer with millisecond precision

Discussion in 'C Programming' started by WeAreBorg, Sep 29, 2005.

  1. WeAreBorg

    WeAreBorg Guest

    How can I create it?

    Thanks in advance
     
    WeAreBorg, Sep 29, 2005
    #1
    1. Advertising

  2. In article <xy8bydnkx9lw$.1fujnocguv4le$>,
    WeAreBorg <> wrote:
    >How can I create it?
    >Thanks in advance


    There is no way to do that in standard C. There isn't any way
    to create a timer with -any- precision in standard C.
    Not even through a "busy wait loop".

    If you need any kind of meaningful timer in C, you need to use
    an operating-system specific extension. You can find out more about
    the possibilities in a newsgroup that is specific to your operating system.
    --
    These .signatures are sold by volume, and not by weight.
     
    Walter Roberson, Sep 29, 2005
    #2
    1. Advertising

  3. WeAreBorg

    Skarmander Guest

    Walter Roberson wrote:
    > There isn't any way to create a timer with -any- precision in
    > standard C. Not even through a "busy wait loop".
    >

    *Especially* not through a busy wait loop. :)

    S.
     
    Skarmander, Sep 29, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nicolas Blais
    Replies:
    1
    Views:
    645
    Victor Bazarov
    Nov 30, 2005
  2. Ìð¹Ï
    Replies:
    0
    Views:
    330
    Ìð¹Ï
    Oct 29, 2008
  3. Ìð¹Ï
    Replies:
    2
    Views:
    400
    James Mills
    Oct 29, 2008
  4. Alex van der Spek

    logging time format millisecond precision

    Alex van der Spek, Jul 19, 2012, in forum: Python
    Replies:
    0
    Views:
    197
    Alex van der Spek
    Jul 19, 2012
  5. Alex van der Spek
    Replies:
    2
    Views:
    334
    David Bolen
    Jul 20, 2012
Loading...

Share This Page