get  ms from gamewindow