Over all, the company reported total revenue of $399 million for the quarter, up 5 percent compared with the first quarter of 2016. Its net income was about $13 million, compared with a net loss of roughly $14 million in the same period a year ago.

“Print advertising remained tough,” Mark Thompson, the chief executive of The Times, said during an earnings call on Wednesday. “But it is a testimony to just how far our business has already transitioned towards digital that this steep decline did not stop us from growing our total revenue significantly in the quarter.”

He added, “We are now in rapid transition from a celebrated past as a great American newspaper to a future of even greater potential as a subscription-first, mobile-first news provider for thoughtful audiences everywhere.”

He attributed the strong growth in digital advertising revenue largely to the company’s focus on mobile, branded content and marketing and creative services.

Still, these are difficult times for all print publishers. Dean Baquet, the executive editor of The Times, has repeatedly said the newsroom will have to be smaller, and employees are anxiously awaiting staff reductions that have been looming for months. The company is also in the midst of consolidating its staff onto fewer floors at its Midtown Manhattan headquarters, and signs of construction around the building have heightened the sense of instability.