How to use glutTimerFunc()?

I coded some stuff to use glutTimerFunc(msec,
fun,value)to dynamically call display function. but it only redered one frame, and stayed there unchanged. Could someone give me detailed information about using glutTimerFunc()? some sample code appreciated. Thanks…