Treat Ocean Drive as a linked series of local roads. Wildwood and Ocean City are both places to pause along the way. The earlier account estimates about two hours of driving without traffic, but summer congestion and lower speeds can stretch it. Build a full afternoon or longer around the places where you actually want to get out.
Atlantic City Boardwalk
Give the Boardwalk time on foot, with the ocean on one side and a different stretch of Atlantic City on the other.