/** * Timestamp event. A timestamped event cannot subsequently being posted and is useful only to * pass its timestamp on to another posted event. */ public void timestamp(BuckEvent event) { event.configure(clock.currentTimeMillis(), clock.nanoTime(), threadIdSupplier.get(), buildId); }
/** Post event to the EventBus using the timestamp given by atTime. */ public void post(BuckEvent event, BuckEvent atTime) { event.configure(atTime.getTimestamp(), atTime.getNanoTime(), threadIdSupplier.get(), buildId); dispatch(event); }