Mail Archives: djgpp/1999/01/02/02:32:19
From: | Alex Lowe <ayin AT 2xtreme DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: time and milliseconds
|
Date: | Fri, 01 Jan 1999 23:28:07 -0800
|
Organization: | TempleCRC
|
Lines: | 42
|
Message-ID: | <368DCA87.37D5D7FE@2xtreme.net>
|
References: | <76kg9d$3tl$1 AT nnrp1 DOT dejanews DOT com>
|
NNTP-Posting-Host: | p69.stk1.2xtreme.net
|
Mime-Version: | 1.0
|
X-Mailer: | Mozilla 4.5 [en] (Win98; U)
|
X-Accept-Language: | en
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
This isn't the time() function, but maybe it'll help...
---- START CODE ----
#include <stdio.h>
#include <conio.h>
#include <dos.h>
int main()
{
time *t;
clrscr();
_setcursortype(0);
while(!kbhit())
{
gettime(t);
gotoxy(1,1);
printf("%i:%i:%i.%i",t->ti_hour,t->ti_min,t->ti_sec,t->ti_hund);
}
return 0;
}
---- END CODE ----
I hope that helps you out... sorry if it doesn't..
-- Alex
ayin AT 2xtreme DOT net
leonj AT geocities DOT com wrote:
>
> Is there a way to retreive milliseconds from the time function?
> Is there a source clip to show this...?
>
> --
> Protected by Big Brotherz with College Degreez and Bedroom Skillz...
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
- Raw text -