<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
thanks Tet, but is it possible to count for "about" 5 Milliseconds such as :<br><br>do{<br><br>keep printing hello world for "about" 5 Mil<br><br>while(clock( 5 mill))<br><br>thnx<br><br><br><div>> Date: Tue, 20 Sep 2011 15:49:51 +0100<br>> From: tethys@gmail.com<br>> To: gllug@gllug.org.uk<br>> Subject: Re: [Gllug] Clock( ) function in C<br>> <br>> On Tue, Sep 20, 2011 at 3:43 PM, dudes dudes <akam123@hotmail.co.uk> wrote:<br>> <br>> > I’m trying to use clock() function (time.h) in milliseconds, but not CPU<br>> > based. For example do something (some codes) for 5 milliseconds and when it<br>> > is exactly 5 millisecond, then exit();<br>> <br>> You can't do that with standard Linux. All you can do is say "this<br>> will run for at least 5 milliseconds". If you need precise accuracy,<br>> in that it must be *exactly* 5ms, you need to use one of the realtime<br>> Linux variants.<br>> <br>> Tet<br>> <br>> <br>> -- <br>> "Java is a DSL for taking large XML files and converting them to stack<br>> traces" -- Bulat Shakirzyanov<br>> --<br>> Gllug mailing list - Gllug@gllug.org.uk<br>> http://lists.gllug.org.uk/mailman/listinfo/gllug<br></div> </div></body>
</html>