Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there any function on UNIX which returns milliseconds ?

Status
Not open for further replies.

ssingh

Programmer
Mar 16, 2000
162
US
I know a function _ftime fetches upto milliseconds in Win-32. But am looking for one in Unix. Should I take Clock tick of the processor ?<br>
Any help would be appreciated.<br>

 
Hi,<br>
<br>
Look at the function &quot;gettimeofday&quot; - that should give you what you need,<br>
<br>
Mike<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top