I am making a maze type of game and I was wondering, how would I create a background timer that keeps track every 120000 milliseconds and would then render an enemy.I already know how to render the enemies.
Not a very detailed question at all. What are you using so far for writing this? If you're using something like SFML, then timers are included, but for standard cpp... If you really want to track things down to milliseconds (questionable if you only want an enemy every 2 minutes), you can use <chrono> and <thread> (difficult), but I have no idea what your level of C++ is? You will also need to make sure your compiler is up to date with the C++11 standard.
Depending on what you're doing to make this game work, you could also run a check if x seconds have passed simply using functions from <ctime> for everything timing based (or <chrono>) after each player move. This is pretty easy to do.
More detail on the question will probably get you a better answer.