When breaking a new generator in you should run the new generator for at least 3 hours to break it in and put a load on it as well.
You should also ideally start your generator up and put a load on it for a few hours at least a few times per month to ensure the generator is working and to keep fresh fuel running through the carburetor.
The amount of fuel a generator uses in an hour is around 1/2 gallon to 1 gallon of fuel per hour for larger generators.
Smaller generators including the 2 stroke generators usually use around 1 gallon in 5 hours which is much better but they can only handle small loads.
I have a small 2 stroke generator that provides about 800 watts of electricity and I can run that generator for around 5 hours on 1 gallon of gasoline.
So if I ran it for 24 hours it would use around 5 gallons of gasoline which is not bad.
A generator will usually run about 8 hours to 10 hours on 5 gallons of gas for larger generators.
Smaller generators can usually go 5 hours on a gallon of gas which means it will use around 5 gallons of gas in 24 to 25 hours.
The larger the generator the more fuel it's gonna use and the more load you put on the generator the more gasoline it's gonna use.
Adding gas to a generator while it's running is not recommended although it can be done safely.
The reason why you're not supposed to add gas to a generator while it's running is because you could spill some gas on the hot engine, hot exhaust etc and cause a fire or explosion.
I have however added gas to my generator while it was running for a long time and never had any issue.
I just make sure to pour the gas in slowly and be careful about it.
During a wind storm that took out the power for a week I had a generator running all the time to have electricity and about every 3 hours I would go out and top off the gasoline tank to keep it running.
Never once did I shut the generator down to refuel and it kept running all that time until the power came back on and I shut it off and checked the oil which was also fine.
If you're not sure if you can go without spilling gasoline then it's best to shut the generator off for a few minutes or so and allow it to cool down while you add some fuel.
Although generators can run for a long time it's okay to give it a break once in awhile and it will save you money on gasoline if you don't need it running constantly.
If you don't have enough fuel then you should only run it as much as you need too.
But if you have enough fuel then you can run it all day and all night if you need to or want too.