[Vm-dev] [commit][2653] add TimerMod
commits at squeakvm.org
commits at squeakvm.org
Thu Jan 3 04:52:46 UTC 2013
Revision: 2653
Author: rowledge
Date: 2013-01-02 20:52:45 -0800 (Wed, 02 Jan 2013)
Log Message:
-----------
add TimerMod
Added Paths:
-----------
trunk/platforms/RiscOS/misc/ToCopy/!Squeak/modules/TimerMod/
trunk/platforms/RiscOS/misc/ToCopy/!Squeak/modules/TimerMod/TimeX
trunk/platforms/RiscOS/misc/ToCopy/!Squeak/modules/TimerMod/TimerMod
trunk/platforms/RiscOS/misc/ToCopy/!Squeak/modules/TimerMod/TimerModDc
Added: trunk/platforms/RiscOS/misc/ToCopy/!Squeak/modules/TimerMod/TimeX
===================================================================
--- trunk/platforms/RiscOS/misc/ToCopy/!Squeak/modules/TimerMod/TimeX (rev 0)
+++ trunk/platforms/RiscOS/misc/ToCopy/!Squeak/modules/TimerMod/TimeX 2013-01-03 04:52:45 UTC (rev 2653)
@@ -0,0 +1,8 @@
+|
+| Put this file on your Run$Path, and alter the RMLoad below
+| to load the TimerMod module if it is not in the same directory
+|
+RMEnsure TimerMod 1.00 RMLoad <Obey$Dir>.TimerMod
+TimerStart
+%*0
+TimerStop
\ No newline at end of file
Property changes on: trunk/platforms/RiscOS/misc/ToCopy/!Squeak/modules/TimerMod/TimeX
___________________________________________________________________
Added: svn:riscosfiletype
+ feb
Added: trunk/platforms/RiscOS/misc/ToCopy/!Squeak/modules/TimerMod/TimerMod
===================================================================
(Binary files differ)
Property changes on: trunk/platforms/RiscOS/misc/ToCopy/!Squeak/modules/TimerMod/TimerMod
___________________________________________________________________
Added: svn:riscosfiletype
+ ffa
Added: svn:mime-type
+ application/octet-stream
Added: trunk/platforms/RiscOS/misc/ToCopy/!Squeak/modules/TimerMod/TimerModDc
===================================================================
--- trunk/platforms/RiscOS/misc/ToCopy/!Squeak/modules/TimerMod/TimerModDc (rev 0)
+++ trunk/platforms/RiscOS/misc/ToCopy/!Squeak/modules/TimerMod/TimerModDc 2013-01-03 04:52:45 UTC (rev 2653)
@@ -0,0 +1,75 @@
+
+Timer Module
+===== ======
+
+\xA9 1991-2003 DEEJ Technology PLC
+
+Provides SWI's and *commands for use in timing programs.
+SWI chunk base &490C0 (Acorn Registered).
+
+SWI "Timer_Start" Turns timer on.
+SWI "Timer_Stop" Returns time interval between last Timer Start,
+ may be called many times.
+ R0 = time in seconds
+ R1 = remainder in microseconds
+SWI "Timer_Value" Returns monotonoc time in seconds and microseconds.
+ R0 = time in seconds
+ R1 = remainder in microseconds
+
+*TimerStart Equivelent to SWI "Timer_Start"
+*TimerStop Stops timer and prints time elapsed message.
+*TimerValue Prints monotonic time to microsecond resolution.
+*TimedOS Creates GOS type command shell and times all
+ commands given until a *QUIT, (remember Arthur OS?)
+
+
+==> Help on keyword TimerMod
+Module is: Timer Module 4.12 (04-Feb-2003) [32bit]
+
+Commands provided:
+TimerStart TimerStop TimerValue TimedOS
+
+It has help on:
+TimerMod
+
+==> Help on keyword TimerStart
+*TimerStart starts the Timer module interval timer, canceling any previous TimerStart.
+Syntax: *TimerStart
+
+
+==> Help on keyword TimerStop
+*TimerStop stops the Timer module interval timer, printing the time elapsed since the last TimerStart.
+Syntax: *TimerStop
+
+
+==> Help on keyword TimerValue
+*TimerValue prints the system monotonic time to microsceond resolution.
+Syntax: *TimerValue
+
+
+Technical Information
+---------------------
+
+On all machines the module uses the CMOS clock for time calculations to
+1 centisecond resolution. Microsecond resolution is provided by hardware
+specific timers. On Risc PC, A7000 and Archimedes machines the 2MHz
+IOMD/IOC timer 0 is used. On RISC OS 5 machines the HAL counter 0 is
+read, which on the Iyonix is provided by the XScale 80321 and runs at 200MHz.
+
+
+SWI numbers
+-----------
+Timer_Start &490C0
+Timer_Stop &490C1
+Timer_Value &490C2
+
+
+Versions
+--------
+1.00 Initial release
+2.00 *commands added
+3.00 SWI chunk base now registered with Acorn
+4.00 Iyonic HAL and 32bit neutral version
+4.10 Uses own time to string routine to prevent timezone offsets
+4.11 Fixed counter wrapping comparison bug
+4.12 Fixed IOC conter off by 1
\ No newline at end of file
More information about the Vm-dev
mailing list