delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/21/15:00:48

From: spacetime AT gmx DOT net (Joern Philipp Meier)
Newsgroups: comp.os.msdos.djgpp
Subject: rawclock() problem
Date: Mon, 21 Sep 1998 18:52:03 GMT
Organization: Joern Online
Lines: 24
Message-ID: <6u677k$j8e$1@public.ndh.net>
NNTP-Posting-Host: 195.227.37.112
Mime-Version: 1.0
NNTP-Posting-Date: 21 Sep 1998 18:51:32 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,

rawclock() should return an unsigned long containing the number of
clock ticks since midnight. However, the following code prints nothing
but single integers apparently ranging from 0 to 9.

#include <time.h>
#include <stdio.h>

main()
{
  short i;
  unsigned long x;
  for(i=0; i<10; i++)
  {
    x = rawclock();
    printf("%lu ", x);
  }
  
}

What's wrong with this?

Joern

- Raw text -


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