| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
<html> |
| 12 |
<head> |
| 13 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 14 |
<meta http-equiv="Content-Language" content="en-us"> |
| 15 |
<title>timestamp</title> |
| 16 |
</head> |
| 17 |
<body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258"> |
| 18 |
<table align="left" border="0" cellspacing="0" cellpadding="0" valign=top> |
| 19 |
<tr> |
| 20 |
<td width=105 height=40><a href="https://projects.eclipse.org/projects/tools.titan"><img src="../images/titan_transparent.gif" border=0 width=105 height=40 align="left" alt="Titan"></a></td> |
| 21 |
</tr> |
| 22 |
</table> |
| 23 |
<table border="0" align="right" cellpadding="0" cellspacing="0"> |
| 24 |
<tr> |
| 25 |
<td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td> |
| 26 |
<td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td> |
| 27 |
<td><a href="timer.html" alt="previous"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td> |
| 28 |
<td><a href="to.html" alt="next"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td> |
| 29 |
</tr> |
| 30 |
</table> |
| 31 |
<p><br clear="all"> |
| 32 |
</p> |
| 33 |
<hr> |
| 34 |
<h1>timestamp</h1> |
| 35 |
<hr align="left" width="75%"> |
| 36 |
<p>The keyword is only used in port operations to store the current test system time at operation completion. Timestamps can only be stored if the port the operation is performed on has the <a href="realtime.html"><font face="Courier New" color="#003258" size="4">realtime</font></a> option set. |
| 37 |
<p>This keyword requires the compiler option '-I' to be set, otherwise it is treated as an identifier. |
| 38 |
<hr align="left" width="50%"> |
| 39 |
<p>Related keyword:</p> |
| 40 |
<ul> |
| 41 |
<li><a href="realtime.html"><b><font face="Courier New" color="#003258" size="4">realtime</font></b></a></li> |
| 42 |
<li><a href="receive.html"><b><font face="Courier New" color="#003258" size="4">receive</font></b></a></li> |
| 43 |
<li><a href="trigger.html"><b><font face="Courier New" color="#003258" size="4">trigger</font></b></a></li> |
| 44 |
<li><a href="getcall.html"><b><font face="Courier New" color="#003258" size="4">getcall</font></b></a></li> |
| 45 |
<li><a href="getreply.html"><b><font face="Courier New" color="#003258" size="4">getreply</font></b></a></li> |
| 46 |
<li><a href="catch.html"><b><font face="Courier New" color="#003258" size="4">catch</font></b></a></li> |
| 47 |
<li><a href="check.html"><b><font face="Courier New" color="#003258" size="4">check</font></b></a></li> |
| 48 |
<li><a href="send.html"><b><font face="Courier New" color="#003258" size="4">send</font></b></a></li> |
| 49 |
<li><a href="call.html"><b><font face="Courier New" color="#003258" size="4">call</font></b></a></li> |
| 50 |
<li><a href="reply.html"><b><font face="Courier New" color="#003258" size="4">reply</font></b></a></li> |
| 51 |
<li><a href="raise.html"><b><font face="Courier New" color="#003258" size="4">raise</font></b></a></li> |
| 52 |
</ul> |
| 53 |
<hr align="left" width="50%"> |
| 54 |
<div align="center"> |
| 55 |
<center> |
| 56 |
<table border="0" width="90%" bgcolor="#FFB599" cellpadding="4"> |
| 57 |
<tr> |
| 58 |
<td width="100%"> |
| 59 |
<h3 align="center"><font face="Courier New" color="#003258" size="5"><b>timestamp</b></font> variable_reference</h3> |
| 60 |
</td> |
| 61 |
</tr> |
| 62 |
</table> |
| 63 |
</center> |
| 64 |
</div> |
| 65 |
<hr align="left" width="50%"> |
| 66 |
<p>Example: |
| 67 |
<p><font face="Courier New">var float v_sendTime;<br> |
| 68 |
myPort.send(myMessage) -> timestamp v_sendTime;<br><br></font> |
| 69 |
The timestamp of the send operation was stored in variable v_sendTime.</p> |
| 70 |
</body> |
| 71 |
</html> |