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

From: John Carter <ECE AT dwaf-hri DOT pwv DOT gov DOT za>
Organization: Dpt Water Affairs & Forestry (IWQS)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Thu, 8 Feb 1996 15:15:10 +0200
Subject: Rawclock?

Hi all,

I tried using rawclock() for nefarious purposes and got 0 for my
pains. Looking at the source for rawclock left me dead, it seems to
do, (what I would guess is an unsafe practice), a far peek into some
part of dos memory.

Any suggestions as to what I am doing wrong?

Should I rewrite rawclock to try a more standard approach via the
interrupt calls?

#include <iostream.h>
#include <time.h>
main()
{
  int i = rawclock();

  cout << i << '\n';
}


John Carter
Institute for Water Quality Studies. Department of Water Affairs.
Internet : ece AT dwaf-hri DOT pwv DOT gov DOT za  Phone    : 27-12-808-0374x194      
Fax : 27-12-808-0338 [Host for Afwater list server]

Founder of the Council for Unnatural Scientists.

- Raw text -


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