Filling in each cell takes constant time - just a bounded number of additions and comparisons - and you must fill in mn cells.
填充每个单元格需要的时间是恒定的—只需有限数量的相加和比较—必须填充mn个单元格。
2
The LOGGING constant in Listing 1 should be TRUE if you want this logging to work, but leave it FALSE when it is running on the cell phone, as the performance hit can be significant.