Only in the Japanese version (hence specifically Sonic & Tails): when the speed has been calculated at the end of an act, pause the game and press up+left+1+2 to reveal a "clear code":



This code was part of a contest back in the day where you could win some prizes (see 27:00 here for the section on the contest):