I think this is a question for a linux programming list. The g++ list pertains to the g++ compiler and its strengths and flaws.
You could probably do what you want with something like timespec ts; //get the time this was received if (0!= clock_gettime(CLOCK_REALTIME, &ts)) { //error unable to get clocktime error=strerror(errno); cerr<<"Error getting time Reason: "<<error<<endl; exit(1); } cout<<"timeStampSecs="<<ts.tv_sec <<timeStampNanoSecs='"<<ts.tv_nsec <<endl; [EMAIL PROTECTED] wrote:
Hi All, I am working on a RedHat Linux with GCC 3.0.I want to retrieve time in milliseconds. <ctime> provides seconds precision only. hope to get help Thanks & Regards Saurabh
_______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus