It's a contraction of "of the clock". Which also means "according to the clock"
So 'it's 10 of the clock', or 'it's 10 according to the clock'', or 'according to the clock it's 10''.
"Of the clock" isn't used any more in everyday speech.
"According to the clock" is still used sometimes.