one way to do this is use the fact that the exterior angles of all polygons add up to 360 degrees
So an exterior angle of a regular octagon = 360 / 8 = 45 degrees.
So each interior angle = 180 - 45 = 135 degrees
so total measure of all angles in octagon = 8 * 135 = 1080 degrees