Also, get the third argument and add a if (tu == TimeUnit.MILLISECOND && multiple <  10) as this is the only time you need to take nanos into account.