mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-23 07:34:31 -06:00
use ms for start time in status files
This commit is contained in:
parent
8d8288e2eb
commit
f6444c4509
@ -38,7 +38,7 @@ public class NBBaseComponent extends NBBaseComponentMetrics implements NBCompone
|
||||
protected boolean bufferOrphanedMetrics = false;
|
||||
private ConcurrentHashMap<String,String> props = new ConcurrentHashMap<>();
|
||||
protected Exception error;
|
||||
protected long started_ns, teardown_ns, closed_ns, errored_ns;
|
||||
protected long started_ns, teardown_ns, closed_ns, errored_ns, started_epoch_ms;
|
||||
protected NBInvokableState state = NBInvokableState.STARTING;
|
||||
|
||||
public NBBaseComponent(NBComponent parentComponent) {
|
||||
@ -47,6 +47,7 @@ public class NBBaseComponent extends NBBaseComponentMetrics implements NBCompone
|
||||
|
||||
public NBBaseComponent(NBComponent parentComponent, NBLabels componentSpecificLabelsOnly) {
|
||||
this.started_ns = System.nanoTime();
|
||||
this.started_epoch_ms = System.currentTimeMillis();
|
||||
this.labels = componentSpecificLabelsOnly;
|
||||
if (parentComponent != null) {
|
||||
parent = parentComponent;
|
||||
@ -296,4 +297,9 @@ public class NBBaseComponent extends NBBaseComponentMetrics implements NBCompone
|
||||
public long nanosof_error() {
|
||||
return this.errored_ns;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long started_epoch_ms() {
|
||||
return this.started_epoch_ms;
|
||||
}
|
||||
}
|
||||
|
@ -47,4 +47,6 @@ public interface NBComponentTimeline {
|
||||
* @return nanosecond time of the error
|
||||
*/
|
||||
long nanosof_error();
|
||||
|
||||
long started_epoch_ms();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user