运行时间到达断点?

时间:2017-08-09 13:51:57

标签: trace32 lauterbach

我有一个带断点A的脚本,我想知道是否是一个显示运行时间的函数,直到达到断点(手动你在Misc Runtime看到它)。假设如果更多是失败,那么它是否会在10ms时命中。到达断点的当前代码是:

GO A
  TOOLBOX WaitValidateBreakpoint A
  ENTRY &StoppedAtBreakpoint

  IF &StoppedAtBreakpoint==FALSE()
  (
  TOOLBOX TestStepFail "Breakpoint A is not reached"
  RETURN
  )
  ELSE
  (
  TOOLBOX TestStepPass "Breakpoint A is reached"
  RETURN
  )

1 个答案:

答案 0 :(得分:2)

你可以花时间运行核心,直到它使用PRACTICE函数RunTime.LASTRUN()

命中断点

所以你可以这样写:

IF RunTime.LASTRUN()<=10.ms
   PRINT "OK"
ELSE
   PRINT "Execution took too long!"

您可以在TRACE32安装中的&lt; t32sys&gt; /pdf/general_func.pdf中阅读有关PRACTICE功能的更多信息。

另请参阅:Benchmarking Code Runtime with Trace32

相关问题