Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!oleane!in2p3.fr!univ-lyon1.fr!pasteur.fr!jussieu.fr!univ-compiegne.fr!melimelo.enst-bretagne.fr!rennes.enst-bretagne.fr!pibot From: pibot@rennes.enst-bretagne.fr (Youenn Pibot) Newsgroups: comp.unix.bsd.netbsd.misc Subject: slow down the execution of a function Date: 15 Feb 1996 16:12:16 GMT Organization: ENST Bretagne Lines: 38 Distribution: world Message-ID: <4fvm10$ngs@melimelo.enst-bretagne.fr> NNTP-Posting-Host: poirot.rennes.enst-bretagne.fr Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, I'm working on a IPv6 implementation under Netbsd 1.1 (i386, ed interface). I need to slow down the execution of a function. Indeed, I want to make a experiment about a non-response time of this function. In kernel mode, I think I can't use the "sleep" call... Is there any simple function that enable me to wait x seconds when the function runs. I wouldn't have to use such horrors like: for (i=0; i<100000000;i++); !!! Thank for all. Youenn --------------------------------------------------------- Youenn PIBOT Etudiant en Mastere "Reseaux et Systemes d'Informations Multimedia" Email: pibot@rennes.enst-bretagne.fr URL: http://www-rennes.enst-bretagne.fr/~pibot/index.html Telephone: 99 - 63 - 99 - 08 Adresse: ENSTBr - Ch. 107 2 Rue de la chataigneraie Rennes-Atalante - BP 78 35512 Cesson Sevigne Cedex ---------------------------------------------------------