Behavioral contrast as differential time allocation