www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/28/08:58:58

Date: Wed, 28 Feb 1996 08:47:55 -0500
From: dj (DJ Delorie)
Message-Id: <199602281347.IAA19473@delorie.com>
To: erik AT tntnhb3 DOT tn DOT tudelft DOT nl
CC: djgpp AT delorie DOT com
In-reply-to: <9602280849.AA20596@tntnhb3.tn.tudelft.nl> (erik@tntnhb3.tn.tudelft.nl)
Subject: Re: time measurement in protected mode?

> A related question: at first I used biostime(), but this function restarts at
> midnight. Now I'm using clock(), but I have no idea whether this function
> will wrap around as well? If so, I wonder whether this occurs at the same time
> in DJGPP v1 and v2, because CLOCKS_PER_SEC as defined in time.h is completely
> different in both versions.

Try using uclock().  It's new to V2, has microsecond resolution,
doesn't mode switch, and wraps only after a few centuries.

- Raw text -


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