delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/20/02:16:04

From: frenchc AT cadvision DOT com (frenchc)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Timers (possible repost)
Date: 20 Jan 1997 03:58:09 GMT
Organization: CADVision Development Corp.
Lines: 16
Message-ID: <5buqgh$308i@elmo.cadvision.com>
References: <fgtLCdAvIM3yEwIZ AT flag DOT demon DOT co DOT uk> <Pine DOT HPP DOT 3 DOT 95 DOT 970116182114 DOT 16623A-100000 AT santaka DOT sc-uni DOT ktu DOT lt>
NNTP-Posting-Host: ts35ip234.cadvision.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Howdy! I've created a simple C++ class to wrap up the allegro timer routines
quite nicely. They have been uploaded to x2ftp.oulu.fi but I don't know if
they'll appear there for how long or if they're there yet, anyways. The
class is quite useful, I think you'll find, only one thing to watch out for
that I didn't mention in the docs. You need to call stop() before read() or
you won't get the right values. Sorry about this bug, I should have
implemented the stop() function in read() but I didn't have time to test
everything until I started to have problems too :) There are a few nice
features too, like no limit to the number of timers you create (no matter
how many classes you create, only one allegro timer resource will be used).
They function like the old TC++ Timer class.

P.S.: I posted this once already, but WinVN (ugh) puked on me so I don't
know if it got out or not. Anyways here's hoping this works :)

- Calvin -

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019