time precision (ctime), tm struct question

This is a discussion on time precision (ctime), tm struct question within the C++ Programming forums, part of the General Programming Boards category; Happy Holidays, I (regretfully) hope that others are working too, because I have a quick question: I am currently using ...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    38

    time precision (ctime), tm struct question

    Happy Holidays, I (regretfully) hope that others are working too, because I have a quick question:


    I am currently using the "tm" struct of ctime to store my time and date information. But the "tm struct" only stores time down to the second, I would like to be able to store time down to the 1/10 of a second. Is this possible with ctime, and if not, does anyone have any suggestions of another way to do it (besides starting from scratch)?
    chris

  2. #2
    Nor
    Nor is offline
    h ֆhr s Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    look this up
    CFileTime on msdn

    i use code i got with a book for my timers. both simple (date:time) and accuret(like for a fps counter) so i cant post it. this class is the core of it
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with linked list sorting function
    By Jaggid1x in forum C Programming
    Replies: 6
    Last Post: 06-02-2009, 03:14 AM
  2. time struct
    By bazzano in forum C Programming
    Replies: 3
    Last Post: 05-25-2007, 01:23 AM
  3. Data struct question
    By ronenk in forum C Programming
    Replies: 4
    Last Post: 03-05-2005, 08:41 AM
  4. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04:49 PM
  5. Bi-Directional Linked Lists
    By Thantos in forum C Programming
    Replies: 6
    Last Post: 12-11-2003, 10:24 AM

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