If the engine is running it is okay, but if not you are discharging the battery too deeply. StPaulGuy's numbers are right on the money. We use laptops for mobile data at work and our department standard is to put a one hour timer on the 12 volt source so the battery will only be discharged for one hour - and these are for large dual truck batteries. You should not go more than 1/2 hour on a car battery. It is even worse for the alternator, which gets mighty hot trying to recharge that much later.
Speaking of hot, our department recently changed from Lenovo laptops to Dell laptops. We ran into a snag because a few of the Dells have burned up - one actually caught fire - running on 12 volt supplies so they are no longer allowed to be powered off the 12 volt source. Just a word of warning.