计算 Excel 电子表格计算的执行时间?
Calculate execution time of Excel Spreadsheet calculations?
是否可以计算excel函数的执行?例如。求和 30 行需要多长时间?
我的公司面临编码挑战,我们正在考虑将您的解决方案的执行时间增加为 metric/bonus 分,但一位业务人员在 excel 中完成了所有这些任务(并且他很擅长),我找不到计算执行时间的方法。
有什么想法吗?
我已经对此进行了调查,因为我在 Excel 中进行了相当大的计算。我用过的免费软件(只需从下面的 link 复制)对我来说已经足够灵活了。例如,您可以使用 "Range Timer" 来计时您的单元格总计 30 个其他单元格。 Here are some profiling tips on microsofts site together with the code.
您没有提供太多内容,但可以使用 Timer 实现精确到毫秒的基本秒表。
application.calculation = xlcalculationmanual
with range("a31")
debug.print timer
.formula = "=sum(a1:a30)"
.calculate
debug.print timer
end with
application.calculation = xlcalculationautomatic
从第二个 Timer 中减去第一个 Timer,或者可能将第一个 Timer 记录为 double 并将减法作为过程的一部分。
是否可以计算excel函数的执行?例如。求和 30 行需要多长时间?
我的公司面临编码挑战,我们正在考虑将您的解决方案的执行时间增加为 metric/bonus 分,但一位业务人员在 excel 中完成了所有这些任务(并且他很擅长),我找不到计算执行时间的方法。
有什么想法吗?
我已经对此进行了调查,因为我在 Excel 中进行了相当大的计算。我用过的免费软件(只需从下面的 link 复制)对我来说已经足够灵活了。例如,您可以使用 "Range Timer" 来计时您的单元格总计 30 个其他单元格。 Here are some profiling tips on microsofts site together with the code.
您没有提供太多内容,但可以使用 Timer 实现精确到毫秒的基本秒表。
application.calculation = xlcalculationmanual
with range("a31")
debug.print timer
.formula = "=sum(a1:a30)"
.calculate
debug.print timer
end with
application.calculation = xlcalculationautomatic
从第二个 Timer 中减去第一个 Timer,或者可能将第一个 Timer 记录为 double 并将减法作为过程的一部分。