Thread: time class / i need help!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Question high-res timer class / please help!

    i want to write a simple cross-platform c++ timer
    class able to at least get millisecond-precise
    time spans. i can do the win32 part but i don't
    know much about the unix side.

    so what i need is somebody doing the unix part.

    i googled and found this
    http://bama.ua.edu/cgi-bin/man-cgi?gethrtime+3C
    won't be much work i guess.


    the only details about the public interface i have in mind for now is this

    Code:
    class CCrossTimer
    {
    	public:
    		double get_passed_time( bool bUpdateLast );
    		bool has_passed( double fMS, bool bUpdateLast, double * fTimePassed = NULL );
    		...
    };
    anybody wanna work with me?
    would be great!
    Last edited by hartwork; 03-25-2005 at 11:00 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. need help in time zone
    By Gong in forum C++ Programming
    Replies: 2
    Last Post: 01-03-2007, 04:44 AM
  2. Help with assignment!
    By RVDFan85 in forum C++ Programming
    Replies: 12
    Last Post: 12-03-2006, 12:46 AM
  3. help working with class files for first time
    By jrb47 in forum C++ Programming
    Replies: 12
    Last Post: 11-30-2006, 09:20 AM
  4. I apologize. Good bye.
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 05-03-2002, 06:51 PM
  5. Difficulty superclassing EDIT window class
    By cDir in forum Windows Programming
    Replies: 7
    Last Post: 02-21-2002, 05:06 PM