try to fix some travis wierdness

by putting time statement outside of the multiline if statement