It wasn't quite clear how long he was active. But it couldn't be that long. He only started midway in Batman Begins, and basically retired at the end of the Dark Knight (unless I'm misremembering things).

Thing is, Batman for the most part only dealt with major crime. Once the mob was essentially dismantled, and the Joker defeated he really didn't have much else to deal with. Sort of explains the retirement.