🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #1228

Lattice C timer routine problem

#1228
From: J E H Shaw
Date: Wed, 08 Apr 1992 11:27
25 lines
1545 bytes
(NOTE: this may not be a specifically Lattice C problem).

I want to time some calculations to the nearest second rather than
to the nearest 2 seconds (which seems to be the resolution of all
the library time routines).

I used vex_timr() (spelling?) and a trivial rewrite of the example given in
the Lattice C manual to update a global variable every second, but when I
ran it I got "Stack space exhausted - program aborted - 3 (usually) bombs"
message.

**  The same thing happened when I typed the example program in verbatim  **

I've tried changing a few "int"s to "short"s (since the Compute! Tech. Ref.
Guide seems to contradict the Lattice C manual), with no joy.  Be warned
that I am a GEM neophyte.

Can anyone help?  I'm using Lattice C v.5.06.02 on an old 1040STF with TOS1.0.
Many Thanks.
                        -- Ewart Shaw
-- 
J.E.H.Shaw,  Department of Statistics, |  JANET:  strgh@uk.ac.warwick.csv
             University of Warwick,    |  BITNET: strgh%uk.ac.warwick.csv@UKACRL
             Coventry  CV4 7AL,  U.K.  |  PHONE:  +44 203 523069
$$\times\times\qquad\top\gamma\alpha\omega\exists\qquad{\odot\odot\atop\smile}$$
Technical Details
Message-ID: <wzghb63b@csv.warwick.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!warwick!strgh

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!warwick!strgh
From: strgh@warwick.ac.uk (J E H Shaw)
Newsgroups: comp.sys.atari.st
Subject: Lattice C timer routine problem
Message-ID: <wzghb63b@csv.warwick.ac.uk>
Date: 8 Apr 92 11:27:06 GMT
Sender: news@csv.warwick.ac.uk (Network news)
Organization: Computing Services, Warwick University, UK
Lines: 25
Nntp-Posting-Host: clover