Modifier and Type | Class and Description |
---|---|
static class |
Watch.TimeInterval |
Modifier and Type | Field and Description |
---|---|
Map<String,Watch.TimeInterval> |
intervals |
Watch.TimeInterval |
total |
Constructor and Description |
---|
Watch() |
Watch(Map<String,Watch.TimeInterval> intervals) |
Modifier and Type | Method and Description |
---|---|
long |
elapsed(String name,
TimeUnit unit) |
long |
elapsed(TimeUnit unit) |
Watch.TimeInterval[] |
getIntervals() |
Watch.TimeInterval |
getTotal() |
Watch |
start() |
Watch |
start(String interval) |
Watch |
stop() |
Watch |
stop(String interval) |
public final Watch.TimeInterval total
public final Map<String,Watch.TimeInterval> intervals
public Watch()
public Watch(Map<String,Watch.TimeInterval> intervals)
public Watch.TimeInterval getTotal()
public Watch.TimeInterval[] getIntervals()
Copyright © 2018 Nuxeo. All rights reserved.