Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art.animation, 1 Mar 1994.
Re: Slow down the animation

Re: Slow down the animation

lin...@training.asd.sgi.com (David Lindes) writes:
>unfortunately, on the system i'm currently on, i don't have usleep,
>or it's in a library other than what i'm compiling with, or
>something, [...]

If you're interested, you can roll your own usleep() using select():

#include <errno.h>
#include <sys/types.h>
#include <sys/time.h>

void
my_usleep(usec)

int			usec;

{
	struct timeval	timeout;

	timeout.tv_sec = usec / 1000000;
	timeout.tv_usec = usec % 1000000;

	while ((select(0, (fd_set *) 0, (fd_set *) 0,
		(fd_set *) 0, &timeout) < 0) && (errno == EINTR));
}

Hope this helps.

--Raja

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fd588,75064a58c47bba35
X-Google-Attributes: gidfd588,public
X-Google-ArrivalTime: 1994-03-01 14:37:04 PST
Path: gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!mane.cgrg.ohio-state.edu!hawkeye.osc.edu!not-for-mail
From: raj...@osc.edu (Raja Daoud)
Newsgroups: alt.ascii-art.animation
Subject: Re: Slow down the animation
Date: 1 Mar 1994 17:37:04 -0500
Organization: The Ohio Supercomputer Center
Lines: 29
Message-ID: <2l0g2g$29...@hawkeye.osc.edu>
NNTP-Posting-Host: hawkeye.osc.edu
About this message. This message was posted publicly to the newsgroup alt.ascii-art.animation in 1994 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post