Unix Programming - Re: I want micro second it's right

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > October 2004 > Re: I want micro second it's right





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: I want micro second it's right
Ralf Fassel

2004-10-28, 7:48 am

* "±èÅÂÈÆ" <kimselect@hotmail.com>
| struct timeb *mil;

=> struct timeb mil;

| printf(" %ld micro " , mil->millitm );

=> mil.millitm

suse9.1% man ftime
This function is obsolete. Don't use it. If the time in seconds
suffices, time(2) can be used; gettimeofday(2) gives
microseconds; clock_gettime(3) gives nanoseconds but is not yet
widely available.

HTH
R'
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com