TIP: Click on subject to list as thread! ANSI
echo: telix
to: ISAAC GROVER
from: JACK HUDGIONS
date: 1997-01-08 00:38:00
subject: Efficiency

IG| Being a programmer, I tend to aspire toward maximum efficiency in
  | my programs, so I'd like to know if anyone has a more efficient
  | way to do the following:
You can avoid the converting the time to a string by using the 'thour'
function.  Here's the startup script I used for years in Telix for
DOS, which demonstrates this... it silences the modem during certain
hours:
//  Telix startup script
main()
{
  if (not carrier())
  if (thour(curtime()) > 21  or  thour(curtime()) < 11)
    cputs("AT L1^M");
  set_defprot('Z');
  dial();
}
---
 * OLXWin 1.00b * Internet: jhudgions@sprynet.com
--- QScan/PCB v1.17b / 01-0035
---------------
* Origin: Agora Online -- Bayonne, NJ 201-437-4355 v.34 (1:2630/312)

SOURCE: echomail via exec-pc

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™.