See this thread where they do just what you want:
Updating at 1000 times per second is almost certainly not possible.
Why would you need such a high update rate anyway. A display will only refresh 60 times per second and the human brain viewing it will register the updates even more slowly.
Memory in C++ is a leaky abstraction .