```
private def getDuration(path: String, unit: TimeUnit): FiniteDuration = Duration(config.getDuration(path, unit), unit)

def getMillisDuration(path: String): FiniteDuration = getDuration(path, TimeUnit.MILLISECONDS)
def getNanosDuration(path: String): FiniteDuration = getDuration(path, TimeUnit.NANOSECONDS)
```
?