Heat flow and efficiency in a microscopic engine