FAQ > 金融建模 > 建模问题 > 平台使用

Q:如何打印函数的运行时间?    

  • A:通过mtic与mtoc输出函数的运行时间,单位为秒。
    范例如下:

    mtic;
    sleep(1000);
    echo mtoc;

    返回结果图如下: