Tylenol not lasting the whole time. After a tummy tuck, is it safe to take ibuprofen?

My Dr gave me Tylenol 3 with codeine 30mg not lasting full time, regular Tylenol I been using as alternate same things, the only thing that last on me is ibuprofen. When can I start taking thst again? Had surgery sat morn n it's tues nite.
