For using time based SQL Injection the command that is being performed should include an WHERE clause If the condition is true sleep for 2 secs else sleep for 5 seconds
The parameters for the sleep() and if() function can be different based on the DB vendor