MCPcopy Create free account
hub / github.com/questdb/questdb / TestMicroClock

Class TestMicroClock

core/src/test/java/io/questdb/test/tools/TestMicroClock.java:29–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27import io.questdb.std.datetime.MicrosecondClock;
28
29public class TestMicroClock implements MicrosecondClock {
30 private final long increment;
31 private long micros;
32
33 public TestMicroClock(long micros, long increment) {
34 this.micros = micros;
35 this.increment = increment * 1000;
36 }
37
38 @Override
39 public long getTicks() {
40 long result = micros;
41 micros += increment;
42 return result;
43 }
44}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…