Micro seconddelays

This is a discussion on Micro seconddelays within the C Programming forums, part of the General Programming Boards category; Is it possible to create microsecond delays in C/C++?? The sleep() already present in time.h gives only in millisecond delays.I ...

  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,231
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    > 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, 01:55 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21