easy way to find time stuff

This is a discussion on easy way to find time stuff within the C++ Programming forums, part of the General Programming Boards category; hey, can someone please give me just a quick snippet of code that will get the current time in hours, ...

  1. #1
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,903

    easy way to find time stuff

    hey, can someone please give me just a quick snippet of code that will get the current time in hours, seconds, minutes, days, etc.? thanks a lot, I lost all my reference data when my hard-drive crashed, and I don't feel like looking for it again.

    -edit-

    ie: I am writing to a log file, and I want to write the time the program started, the time it ended, and the time in between
    Last edited by jverkoey; 02-15-2003 at 04:20 AM.

  2. #2
    Registered User Azuth's Avatar
    Join Date
    Feb 2002
    Posts
    236
    www.cplusplus.com This help?
    Demonographic rhinology is not the only possible outcome, but why take the chance

  3. #3
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,903
    lmao, you know, I was just looking at that site a couple seconds ago, hehe, i've already got it finished

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 26
    Last Post: 07-05-2010, 10:43 AM
  2. Need help with time
    By Gong in forum C++ Programming
    Replies: 7
    Last Post: 01-11-2007, 01:43 PM
  3. Time between Military Hours
    By StarOrbs in forum C++ Programming
    Replies: 18
    Last Post: 03-01-2005, 05:46 PM
  4. Elevator Function confusion
    By applescruff in forum C++ Programming
    Replies: 5
    Last Post: 12-16-2004, 09:14 AM
  5. I apologize. Good bye.
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 05-03-2002, 06:51 PM

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