Skip to contentSkip to conversation

nanosleep

DISCUSSION mark manning 1 participant 1 message Apr 10, 2002

lore
Share & tools
lore
#0 lore raw

hi - yes i read the man pages, im already using nanosleep for doing 1 second delays and i chose nanosleep because a signal can interrupt the delay which might be useful (and might not :)

----- Original Message -----
From: Mark Hahn <[email protected]>
Date: Tue, 9 Apr 2002 20:32:03 -0400 (EDT)
To: mark manning <[email protected]>
Subject: Re: nanosleep

Quoted 9 lines
Quoted 3 lines

could someone show me how to do a delay of N miliseconds using nanosleep ? (given n delay n mili seconds etc) - i cant seem to get my code to work doh!

did you read the fine man page, esp the section on resolution and busy-waits? also, using select for its timeout is probably more portable.

Signature · 4 lines
_______________________________________________
Get your free email from http://www.fastermail.com

Powered by Outblaze