Thread delays and timeouts using proper time units