The average American worker took home 0.6 percent more pay each week in July than in June by working longer hours but lost a small salary gain to inflation, the Labor Department reports.

The Bureau of Labor Statistics said the average U.S. worker spent 0.6 percent more time on the job in July.The average worker also earned 0.4 percent more in hourly wages in July compared with June after adjustments for seasonal variations, but an 0.4 percent increase in the consumer price index wiped out those gains, the bureau said.

The combination meant the average U.S. worker gained 0.6 percent in real average weekly earnings in July after losing ground in both May and June, the bureau said.

The increase is the largest since a 1.2 percent jump in April, the bureau said.

When compared with July 1987, average hourly earnings were 3.9 percent higher and average hours worked were 0.3 percent higher, the bureau said.

When the 4 percent increase in consumer prices for the year was figured in, however, real average weekly earnings were up only 0.2 percent in July from July 1987, the bureau said.