我想在 DolphinDB GUI 中计算矩阵乘法运算的运行时间,
x=rand(1.0, 1000000).reshape(1000 : 1000)
y=rand(1.0, 1000000).reshape(1000 : 1000)
x**y
我尝试如下功能计时器,
x=rand(1.0, 1000000).reshape(1000 : 1000)
y=rand(1.0, 1000000).reshape(1000 : 1000)
tm =timer(x**y)
assert 1,tm < 2000000000
然后执行它,结果如下图,
2019-05-10T17:37:00.359: execution was completed with exception
Syntax Error: [line #3] Cannot recognize the function name timer
如何获得运行时间?