Quick home electric question

in case anyone is wondering, we lost power several times yesterday
it flickered a few times around 5 but by 7 i flickered and stayed of

so i ran into town to get some gas and fired up the generator

it powered the house just fine from about 8 thill midnite
i checked my phone and it said the power outage was restored (and sure enough, i had a red light flashing on my electrical meter again)

long story short, it all worked as it should