| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | A few questions |
Hello Roy!
Saturday September 14 1996 01:23, Roy McNeill wrote to Andrew Seeger:
AS>> 2... A clock routine, to display the clock and continually
AS>> updating it, i guess i will eventually work it out, but some
AS>> pointers (no pun intended) would be much appreciated.
RM> A simple way is to use Borland's gettime() function. Call it once
RM> during startup, and save the seconds figure. In your program's main
RM> idle loop, call gettime(), and compare the returned seconds with
RM> the saved seconds. If they differ, update your time display.
Done, i have now managed to get a routine going with the kbhit function.
RM> Don't update the display every time the idle loop loops. Screen
RM> writing can be very time consuming if overdone. If you have a
RM> profiler, learn how to use it.
Now i am buggered, what on earth is profiler, i have heard of the word but have
no idea what it is or does...
RM> Find the library reference manual (*the* most important book once
RM> you've got the hang of the language) and look up keyboard and i/o
RM> routines. Write lots of little tiny programs to get the feel of
RM> them.
Yes, i have been having a little read, especially when i want to do something
with my program, then i have to go and study up on a new function or routine.
Thanks for your help.
Regards,
Andrew.
--- FMailX 1.20
* Origin: Enterprise BBS, Langwarrin, Vic, Aust., +61-3-9776-6732 (3:633/158)SEEN-BY: 50/99 620/243 623/630 632/107 348 360 633/151 154 158 159 260 371 SEEN-BY: 633/373 374 634/388 396 635/301 502 503 544 639/252 711/401 409 410 SEEN-BY: 711/413 430 808 809 932 934 712/515 713/888 714/906 800/1 @PATH: 633/158 154 371 635/503 50/99 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.