That's not a problem at all so far as the generator is concerned. Stopping and letting it cool down and restarting it cold would be harder on it than letting it run. It's not going to be any hotter after ten hours than after one or two.
You'll probably have to purchase gasoline at least once and possibly twice for that length of runtime, or obviously more frequently if traveling. If perchance it's a propane generator, you'll need propane several times. The generator should be shut down while refueling, just as for the main engine; that is legally required in most if not all states, besides just being good common sense. It would not hurt to check the oil level and add some if needed at the same time.