[number + counter] + くらい/ぐらい [verb (plain)] + くらい/ぐらい [i-adj] + くらい/ぐらい [na-adj] + な + くらい/ぐらい [noun] + くらい/ぐらい
After a number, くらい means "about": じゅっぷん10分くらい, "about ten minutes". It goes straight after the number and counter. ぐらい is the same word, and either is correct anywhere.
With a time of day, くらい follows the time and any particle comes after it: さんじ3時くらいにきてください来てください. For a point in time, ごろ is the more usual word.
After a verb or an adjective in the plain form, くらい gives the degree of something by saying what it led to: "so tired I couldn't walk".
After a noun, くらい compares: "as tall as", "about the same as".
くらい also plays something down as small or easy: "at least", "something as simple as".