Putting Timer/Time Delays into your programs

This is a discussion on Putting Timer/Time Delays into your programs within the C++ Programming forums, part of the General Programming Boards category; I'm attempting to write a program that I'd like to go off once the computer's clock reaches a certain time/date. ...

  1. #1
    newbie
    Guest

    Question Putting Timer/Time Delays into your programs

    I'm attempting to write a program that I'd like to go off once the computer's clock reaches a certain time/date. How would one go about doing something like this?

  2. #2
    Registered User Strider's Avatar
    Join Date
    Aug 2001
    Posts
    149
    Sounds a little "buggy." Don't think you'll get much of a response.

    David
    One Ring to rule them all, One Ring to find them,
    One Ring to bring them all and in the darkness bind them
    In the Land of Mordor where the Shadows lie.

  3. #3
    Registered User Generator's Avatar
    Join Date
    Aug 2001
    Posts
    238
    What if he want's to use it for a legitimate purpose?

  4. #4
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    get the system date using a struct for date. I cant remember exactly the code for this but should be in your compiler help.

    There is also one for time, they are both included in dos.h

    copy them into int values and compare them. Sorry this is alittle brief but i will find that code and post it.
    hth
    Monday - what a way to spend a seventh of your life

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Putting together programs
    By Duckzilla in forum C Programming
    Replies: 6
    Last Post: 12-05-2007, 12:43 AM
  2. Recommend upgrade path for C programs
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-22-2007, 07:32 AM
  3. Newbie question: pointers, other program's memory
    By xxxxme in forum C++ Programming
    Replies: 23
    Last Post: 11-25-2006, 01:00 PM
  4. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 05:42 AM
  5. executing c++ programs on the web
    By gulti01 in forum C++ Programming
    Replies: 4
    Last Post: 08-12-2002, 04:12 AM

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