is this a simile?

"A man needs to retire as much from his chamber as from society"

No.

A simile will have "like" or "as" in it to make the comparison between two unlike things.

He's as tall as a giraffe.

Her smile is like the sun lighting up a room.

http://www.tnellen.com/cybereng/lit_terms/simile.html