| Constructor and Description |
|---|
Meter()
Creates a new
Meter. |
Meter(long downtime)
Creates a new
Meter. |
Meter(long downtime,
Clock clock)
Creates a new
Meter. |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount()
Returns the number of events which have been marked.
|
void |
mark()
Mark the occurrence of an event.
|
void |
mark(long n)
Mark the occurrence of a given number of events.
|
void |
waitIfNecessaryAndUpdateNextAvailableTime() |
public Meter()
Meter.public Meter(long downtime)
Meter.downtime - is the value of end.public long getCount()
Meteredpublic void mark()
public void mark(long n)
n - the number of eventspublic void waitIfNecessaryAndUpdateNextAvailableTime()
Copyright © 2023 NoraUi. All rights reserved.