added abstract for getMicrosecondTime
authorClaus Gittinger <cg@exept.de>
Thu, 30 Jul 1998 16:38:54 +0200
changeset 3689 f3351f92641e
parent 3688 95643ff0e080
child 3690 7b7c5ff84986
added abstract for getMicrosecondTime
AbstractOperatingSystem.st
--- a/AbstractOperatingSystem.st	Wed Jul 29 19:31:39 1998 +0200
+++ b/AbstractOperatingSystem.st	Thu Jul 30 16:38:54 1998 +0200
@@ -2741,6 +2741,20 @@
     self subclassResponsibility
 !
 
+getMicrosecondTime
+    "This returns the microsecond timers value - if available. 
+     On some machines, times with this precision may not be available,
+     on those, the returned value may be rounded towards some internal
+     clock resolution value."
+
+    "/ fallBack - use getMillisecondTime, which must be implemented
+    "/ for all OS's
+
+    ^ self getMillisecondTime * 1000
+
+    "Created: / 30.7.1998 / 16:38:26 / cg"
+!
+
 getMillisecondTime
     "This returns the millisecond timers value. 
      The range is limited to 0..1fffffff (i.e. the SmallInteger range) to avoid
@@ -3249,6 +3263,6 @@
 !AbstractOperatingSystem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.1 1998-06-15 14:52:33 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.2 1998-07-30 14:38:54 cg Exp $'
 ! !
 AbstractOperatingSystem initialize!