2010 2011 movie man sees world around him in code and makes money
The movie that you are referring sounds like the movie Source Code. The movie is a science fiction film that was directed by Duncan Jones. It was first released in the year 2011.
Is this the Bradley Cooper movie "Limitless"?