Lafros MaCS 1.2r1
|
|
com/lafros/macs/util/Timer.scala
]
class
Timer(__params : Params)
extends
AnyRefAdditional Constructor Summary | |
def
|
this
: Timer
creates new instance. The reference boundary will be set to 'the
epoch'--0000 hours on 1970-01-01--and period to 1 second.
|
def
|
this
(refBoundaryMillis : Long, periodMillis : Long) : Timer
creates new instance.
|
Method Summary | |
def
|
lagMillis
: Long
where (current time + lagMillis) is used in place of the value obtained from
the system clock.
|
def
|
lagMillis_= (lagMillis : Long) : Unit |
def
|
lastBoundaryMillis
: Long
in case sleep not called.
|
def
|
params
: Params
parameters.
|
def
|
params_= (params : Params) : Unit |
def
|
periodMillis
: Long
period parameter/ms.
|
def
|
periodMillis_= (periodMillis : Long) : Unit |
def
|
setParams
(refBoundaryMillis : Long, periodMillis : Long) : Unit
convenience.
|
def
|
setRefBoundaryMillis
(refBoundaryMillis : Long) : Unit
sets new reference boundary/ms.
|
def
|
sleep
: Long
until next boundary.
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Additional Constructor Details |
def
this : Timer
Method Details |
def
params : Params
def
periodMillis : Long
def
lagMillis : Long
def
sleep : Long
def
lastBoundaryMillis : Long
Lafros MaCS 1.2r1
|
|