Times Co. reports a profit, aided by digital subscribers