glutTimerFunc stalls animation

I’m having a problem with glutTimerFunc. When I pass it a value of less than 18 ms, the animation freezes for a moment now and then. Is it because my video card is not capable of higher framerates? The animation occurs when I move mouse inside an OpenGL window. I appreciate any help.