Measurement of the time dependence of B^0-anti-B^0 oscillations using inclusive dilepton events