compute process time