The Commander in Chief visited the Communications/Technology hub at 1 Police Plaza downtown, the "Real Time Crime Center" -- a room that has dozens of monitors with feeds from traffic cameras, maps and stats.
Mayor Bloomberg and Commissioner Ray Kelly were also on hand as Obama congratulated the cops there for a job well done.
"I know folks are busy, but I just wanted to come by to say thank you," said Obama. "The work here is a model for the country and has been here for some time. You are professional and excellent at all times.... The country is proud of you."
Commissioner Kelly also gave Obama a police jacket that said "POTUS" on the side. After seeing that it was an NYPD jacket Obama said, "I was worried you were going to give me a Yankees jacket."
President Obama later attended a fundraiser at the St. Regis Hotel, and was still using his funny bone.
"It is good to be back in New York City," he began, after being introduced by the Speaker of the House, "And it is good to be following Nancy Pelosi."
He continued, "New York is a tough town -- and Nancy Pelosi, that is one tough lady. You need to be tough to put up with all of the criticism and griping she does.. and that's from the democrats.
Perhaps still emboldened by his well received performance at the White House Correspondent's dinner, the comedy just kept on coming.
"Sixteen months ago, when we took office, we knew this wouldn't be easy," said Obama to the crowd of Democrat politicians and contributors. "At least i hope you knew, 'cause I told you. If you didn't know you weren't paying attention to my inauguration address."
The visit to New York City comes less than two weeks after local and federal law enforcement teamed up to arrest a Pakistani-born naturalized U.S. citizen in connection with a failed plot to set off a powerful car bomb in Times Square.
Shahzad has admitted to the May 1 bomb plot, and U.S. Attorney General Eric Holder said quick investigative work by federal, state and local officials led to his arrest.
Obama's tour of New York on Thursday also took him upstate, where he made a stop Buffalo to discuss the economy and meet with families of victims of the crash of Continental Connection flight 3407, which killed 50 people in 2009.