🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.help
Article #14

Re: Pausing program for specified # of seconds in THINK C

#14
From: F. Degott
Date: Mon, 21 Aug 1995 11:55
29 lines
1374 bytes
In article <oylerb-2108950003230001@msp1-5.nas.mr.net>,
oylerb@tdkt.skypoint.net (Bill A. Oyler) wrote:

>Hello,
>
>Is there a toolbox command I can use to "pause" my program for the desired
>number of seconds (or ticks, if necessary)?  All I need to do is pause for
>about 4 seconds while a splash screen is displayed...
>
>Thanks!
>

Hi Bill,
there is a proc. called Delay (OS Utilities)

PROCEDURE Delay (numTicks: LONGINT; VAR finalTicks: LONGINT);

numTicks describe the time to delay in 1/60 sec.

to pause your program for 4 seconds:

Delay(240,fTicks);

Hope this helps.
Fr
-------------------------------------------------------------------------
FR Degott (Francois-Regis.Degott@imag.fr)
Lab. LMC-IMAG - UJF - Grenoble - France
-------------------------------------------------------------------------
Technical Details
Message-ID: <Francois-Regis.Degott-2108951359270001@harpie.imag.fr>
Path: arc1-ca.pugleaf.net!harpie.imag.fr!user
References: <oylerb-2108950003230001@msp1-5.nas.mr.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!harpie.imag.fr!user
From: Francois-Regis.Degott@imag.fr (F. Degott)
Newsgroups: comp.sys.mac.programmer.help,comp.lang.c
Subject: Re: Pausing program for specified # of seconds in THINK C
Date: 21 Aug 1995 11:55:31 GMT
Organization: LMC-IMAG Grenoble France
Message-ID: <Francois-Regis.Degott-2108951359270001@harpie.imag.fr>
References: <oylerb-2108950003230001@msp1-5.nas.mr.net>
NNTP-Posting-Host: harpie.imag.fr
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit