@logux/core
Version:
Logux core components
19 lines (15 loc) • 319 B
JavaScript
import { TestLog } from '../test-log/index.js'
export class TestTime {
constructor() {
this.lastId = 0
this.lastTime = 0
}
static getLog(opts) {
let time = new TestTime()
return time.nextLog(opts)
}
nextLog(opts) {
this.lastId += 1
return new TestLog(this, this.lastId, opts)
}
}