Re: OFF-TOPIC: delay(); para Linux.
Obrigado.
Funciona sim.
Citando Rodrigo Real <rreal@inf.ufrgs.br>:
> Oi
>
> Pode ser que ajude...
>
> $man 3 usleep
>
> NAME
> usleep - suspend execution for microsecond intervals
>
> SYNOPSIS
> #include <unistd.h>
>
> void usleep(unsigned long usec);
> int usleep(unsigned long usec); /* SUSv2 */
>
> DESCRIPTION
> The usleep() function suspends execution of the calling
> process for usec microseconds. The sleep may be length
> ened slightly by any system activity or by the time spent
> processing the call.
>
> Abracos
>
>
> ipascoal@anacom.com.br writes:
> > Oi pessoal.
> >
> > Estou precisando encontrar uma funcao em C que faca o mesmo que a
> delay();
> > Se alguem souber de algum include ou mesmo uma funcao substituta, sera
> de
> > muita ajuda.
> >
> > A necessidade que tenho eh para calcular 15 milisegundos. A funcao
> sleep()
> > nao me parece uma saida pois trabalha com inteiros e com segundos.
> >
> > De qualquer forma obrigado
> >
> > Irpauan Pascoal
> >
> >
> >
> > --
> > To UNSUBSCRIBE, email to debian-user-portuguese-request@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>
> --
> To UNSUBSCRIBE, email to debian-user-portuguese-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>
--
To UNSUBSCRIBE, email to debian-user-portuguese-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: