delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/22/06:19:53

Xref: news-dnh.mv.net comp.os.msdos.djgpp:4596
From: Roland Exler <R DOT Exler AT jk DOT uni-linz DOT ac DOT at>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Question about gcc (Timer-code)
Date: 22 Jan 1996 07:23:02 GMT
Organization: Institute for el. Measurement, University of Linz, Austria
Lines: 33
Message-ID: <4dve0m$70u@alijku06.edvz.uni-linz.ac.at>
References: <DLBnGq DOT JE2 AT jade DOT mv DOT net>
NNTP-Posting-Host: sensor4.emt.uni-linz.ac.at
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Werner Drescher <k1950 AT fh-sw DOT de> wrote:
>Hi I've a question about gnu C++
>
>I want to wait in my program for some Mikroseconds but when I use usleep()
>it takes to much time of course it is a funktion. I need a method to wait 
>exactly e.g. 10 Mikroseconds. Can you make some suggestions I can realize 
>this problem ?

I've written a class 'timer' with the following key-features:

* resolution 1 timer-tick (<1 microsecond)
* time-measurements up to 1 hour (wrap-around)
* time-delays specified in timer-ticks, microseconds, milliseconds 
  or seconds
* no interrupt used, so it's save to use 
* one public timer-object is automatical initialized at startup, so 
  the runtime of the program is always availiable.
* Documentation availiable as TEX/INFO-files

Anyone interested in the code should send me an email. If not specified 
else, I'll send an zipped package UU-encoded.

Roland

+---------------------------------------+---------------------------+
I Roland Exler                          I EMAIL:                    I
I Universitaet Linz                     I R DOT Exler AT jk DOT uni-linz DOT ac DOT at I
I Institut fuer Elektrische Messtechnik I                           I
I Altenbergerstr. 69                    I Phone:                    I
I A-4040 Linz, AUSTRIA                  I + 43 732 2468 9205        I
+---------------------------------------+---------------------------+


- Raw text -


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