Thread: Micro seconddelays

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    1

    Micro seconddelays

    Is it possible to create microsecond delays in C/C++??The sleep() already present in time.h gives only in millisecond delays.I badly need to do this for accurate timimg in a real time aplication.Could someone suggest a way for this?

  2. #2
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    I am not sure about what I am saying.
    It depends on the computer hardware. I think you should use timer interupt of hardware. That is in PC int0 for example.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > I badly need to do this for accurate timimg in a real time aplication
    State your OS / Compiler / Architecture and any other useful information which might help answer your question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. c programming, MC68HC11 micro controller board simulator
    By fortune2k in forum C Programming
    Replies: 10
    Last Post: 03-11-2009, 07:04 AM
  2. Kraft Cheesy Pasta Rules (better than micro chips)
    By davie_scotland in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 02-01-2002, 02:55 AM