www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2013/02/14/01:15:15

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 10.224.18.199 with SMTP id x7mr176313qaa.1.1360821295930;
Wed, 13 Feb 2013 21:54:55 -0800 (PST)
X-Received: by 10.49.28.162 with SMTP id c2mr1538272qeh.41.1360821295867; Wed,
13 Feb 2013 21:54:55 -0800 (PST)
Newsgroups: comp.os.msdos.djgpp
Date: Wed, 13 Feb 2013 21:54:55 -0800 (PST)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.59.228.22; posting-account=05hOMwoAAAB6R8xtiQKzEljSMzgOhVF1
NNTP-Posting-Host: 71.59.228.22
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e5e794f9-56d1-49c2-aabf-5dd403cada4f@googlegroups.com>
Subject: please show calculations in uclock documentation?
From: Jim Michaels <jmichae3 AT yahoo DOT com>
Injection-Date: Thu, 14 Feb 2013 05:54:55 +0000
Bytes: 1525
Lines: 6
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Mr. Delorie, could you please show documentation for the math you used to calculate the number of days for turnover for uclock, and could you also show an example of code (with math) which converts the output to 
- milliseconds
- microseconds

I am pretty sure the latter simply involves a ratio and can be done with integer math, provided variables are used - I noticed that stuffing into a single big expression may do strange things to the result (such as truncation, etc).

thanks.

- Raw text -


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