Pause in C

Extracted from debian-list
Tip provided by Mike Stone
> I am after a way to generate a pause of 300ns in a C program I am working
> on. At the moment, I am using a for loop of about 700000 iterations..
> works okay, but on a faster system it will die.. (needed to slow down I/O
> with an interface card)
 
 man nanosleep

Follow-up :
| Previous | Next | Index of category | Main Index | Submit |


Appears in section(s) : C
Tip recorded : 08-10-1998 10:37:59
HTML page last changed : 27-07-1999 20:10:37