Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF

333 TIME Purpose This can be used to set or read the internal timer. The timer counts in one hundredth of a second intervals. It is not a clock providing true time of day readout. However, once set, the internal clock will keep good time. Pressing the BREAK key does not reset the clock. To convert TIME to a 24 hour clock use the following routines: 1000 SEC=(TIME DIV 100) MOD 60 1010 MIN=(TIME DIV 6000)MOD 60 1020 HR =(TIME DIV 360000)MOD 24 Examples 205 TIME=(Ho*60+Mi)*60+Se)*100 400 nowtime=TIME Description A pseudo-variable which sets or reads the lower four bytes of the internal elapsed time clock.

Syntax TIME = or = TIME Demonstration program 1070 finishtime=TIME+1000 1080 REPEAT 1090 REM wait for 10 seconds 1100 UNTIL TIME>=finishtime