Java
Duration constants with int or Duration

by Michael

static final java.time.Duration TIMEOUT = java.time.Duration.ofMillis(5000);

TIMEOUT.getSeconds();

static final int TIMEOUT_MILLIS = 5000;

TIMEOUT_MILLIS / 1000;