Thread: Micro seconddelays

  1. #1
    Registered User
    Join Date
    Feb 2006

    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
    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
    The edge of the known universe
    > 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
    Replies: 7
    Last Post: 02-01-2002, 01:55 AM