When a jury trial is waived, the judge or justice before whom the trial is had shall, at the conclusion thereof, announce his findings upon the issues of fact, which shall be in substantially the form prescribed for the general verdict of a jury and shall be entered upon the minutes.