The timing should be printed outside of the if/else so that all statements, not just SELECT, get timing output.