Displaying time

This is a discussion on Displaying time within the Windows Programming forums, part of the Platform Specific Boards category; I'm trying to display the time in a static control. But I need a good way to keep it updating ...

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    31

    Displaying time

    I'm trying to display the time in a static control. But I need a good way to keep it updating without using peekmessage or something where I use up all the cpu time.

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Use the SetTimer function.

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    31
    Champion, thanks mate.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to get current time
    By tsubasa in forum C Programming
    Replies: 3
    Last Post: 05-01-2009, 03:03 AM
  2. Displaying time in a dynamic fashion..how?
    By wakish in forum C++ Programming
    Replies: 11
    Last Post: 07-06-2006, 03:52 PM
  3. displaying date and time
    By AmazingRando in forum C Programming
    Replies: 2
    Last Post: 09-08-2003, 12:47 PM
  4. Is this really true or it's just science fiction?
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 145
    Last Post: 04-09-2002, 07:17 PM
  5. time class
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 12-11-2001, 10:12 PM

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