Hi MSM
From what I understand the QSPY timestamp is based on Tcl associative array and the size is define with QS_TIME_SIZE ?
On my project QS_TIME_SIZE is 4, what is the best way to get human readable timestamp from the output? or is the timestamp just a timer-counter?
Thanks
Eddie
Last edit: Eddie_1066 2024-08-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Eddie,
The QS time tamp is provided by the QS_onGetTime() callback in your code (typically Board Support Package). It is just an integer number with a configurable dynamic range. I don't understand your comment about connection to "Tcl associative array".
--MMS
Last edit: Quantum Leaps 2024-08-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, got ya. That 8-year old post talks about two things: (1) what QS time stamp is and (2) how the old QUTest test scripts or QView scripts (written in Tcl back then) handled formatting of the timestamp. Obviously, the Tcl stuff is no longer relevant because both QUTest and QView moved on to Python.
--MMS
Last edit: Quantum Leaps 2024-08-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi MSM
From what I understand the QSPY timestamp is based on Tcl associative array and the size is define with QS_TIME_SIZE ?
On my project QS_TIME_SIZE is 4, what is the best way to get human readable timestamp from the output? or is the timestamp just a timer-counter?
Thanks
Eddie
Last edit: Eddie_1066 2024-08-02
Hi Eddie,
The QS time tamp is provided by the QS_onGetTime() callback in your code (typically Board Support Package). It is just an integer number with a configurable dynamic range. I don't understand your comment about connection to "Tcl associative array".
--MMS
Last edit: Quantum Leaps 2024-08-02
That what I thought. I got confused reading this post linked below, about the timestamp.
you stated:
"Instead, the formatting of timestamps is represented as the TCL array $theFmt(tstamp)."
https://sourceforge.net/p/qpc/discussion/668726/thread/feec2b7f/?limit=25#92e7
OK, got ya. That 8-year old post talks about two things: (1) what QS time stamp is and (2) how the old QUTest test scripts or QView scripts (written in Tcl back then) handled formatting of the timestamp. Obviously, the Tcl stuff is no longer relevant because both QUTest and QView moved on to Python.
--MMS
Last edit: Quantum Leaps 2024-08-02