| cvs.gedasymbols.org/archives/browse.cgi | search |
| From: | "Michael Stewart" <mike AT reggin DOT freeserve DOT co DOT uk> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: need to know a few things. |
| Date: | Thu, 21 Jan 1999 21:18:45 -0000 |
| Organization: | Customer of Planet Online |
| Lines: | 35 |
| Message-ID: | <7885s3$2co$1@news6.svr.pol.co.uk> |
| References: | <36A77E5E DOT E05C98FF AT gremlan DOT org> |
| NNTP-Posting-Host: | modem-28.argon.dialup.pol.co.uk |
| X-Trace: | news6.svr.pol.co.uk 916953795 2456 62.136.8.156 (21 Jan 1999 21:23:15 GMT) |
| NNTP-Posting-Date: | 21 Jan 1999 21:23:15 GMT |
| X-Complaints-To: | abuse AT theplanet DOT net |
| X-Newsreader: | Microsoft Outlook Express 4.72.3110.5 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Beer God wrote in message <36A77E5E DOT E05C98FF AT gremlan DOT org>...
>hey guys i need to know how do you turn off the warnings, preferably
>usin a command line switch. also i need to know how to access the timer,
>i need to get the new time, then compare it to the old time, any ideas?
>thanks
>jason
>masonjoyers AT hotmail DOT com
>
Check the time difference is pretty straightforward:
#include <sys/timeb.h>
#include <iostream.h>
int main () {
timeb t, s; // fps
if (ftime (&t) != 0) exit (1);
while (!kbhit()) {
// do stuff
}
ftime (&s); // fps
cout << "Time difference " << (s.time - t.time) << "\n";
return (0);
}
As for turning of the warnings I think it says in the docs (can't remember
where though)
But why would you want to? They are there warn you something may be wrong
with your program.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |