ConnectionStartTimeMilliseconds (System function): Difference between revisions
Jump to navigation
Jump to search
m (→Syntax terms) |
No edit summary |
||
(24 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Template:System:ConnectionStartTimeMilliseconds subtitle}} | {{Template:System:ConnectionStartTimeMilliseconds subtitle}} | ||
The purpose of this method is to help provide service time statistics for web requests. | |||
==Syntax== | ==Syntax== | ||
Line 5: | Line 6: | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%number</th><td>The returned value is the connection start time; it is a numeric value which is the number of milliseconds since January 1, 1900.</td></tr> | <tr><th>%number</th><td>The returned value is the connection start time; it is a numeric value which is the number of milliseconds since 12 AM, January 1, 1900, if the thread is a TCP/IP server (for example, <var class="product">Janus Web Server</var>) thread, or zero otherwise.</td></tr> | ||
<tr><th>%(System)</th> | <tr><th><var class="nobr">%(System)</var></th> | ||
<td>The class name in parentheses denotes a shared method. <var>ConnectionStartTimeMilliseconds</var> can also be invoked via a System object variable, which may be null.</td></tr> | <td>The class name in parentheses denotes a [[Notation conventions for methods#Shared methods|shared]] method. <var>ConnectionStartTimeMilliseconds</var> can also be invoked via a <var>System</var> object variable, which may be null.</td></tr> | ||
</table> | </table> | ||
==Usage notes== | ==Usage notes== | ||
<ul> | |||
<li>The connection time is as of the earliest detection of the connection. For a new | |||
connection, this means when the Janus TCP PST sees the first request for a connection. | |||
<li>To do your own service time calculations, you can do something like: | |||
<p class="code">%serviceTime = %(system):currentTimeMilliseconds - %(system):connectionStartTimeMilliseconds </p> | |||
A satisfactory result is not guaranteed if this code is run on a VTAM 3270 thread. | |||
</ul> | |||
==See also== | ==See also== | ||
<ul> | |||
<li><var>[[ConnectionStartTimeString (System function)|ConnectionStartTimeString]]</var> | |||
</ul> | |||
{{Template:System:ConnectionStartTimeMilliseconds footer}} | {{Template:System:ConnectionStartTimeMilliseconds footer}} |
Latest revision as of 19:03, 3 September 2015
Time of connection start in milliseconds (System class)
[Introduced in Sirius Mods 7.8]
The purpose of this method is to help provide service time statistics for web requests.
Syntax
%number = %(System):ConnectionStartTimeMilliseconds
Syntax terms
%number | The returned value is the connection start time; it is a numeric value which is the number of milliseconds since 12 AM, January 1, 1900, if the thread is a TCP/IP server (for example, Janus Web Server) thread, or zero otherwise. |
---|---|
%(System) | The class name in parentheses denotes a shared method. ConnectionStartTimeMilliseconds can also be invoked via a System object variable, which may be null. |
Usage notes
- The connection time is as of the earliest detection of the connection. For a new connection, this means when the Janus TCP PST sees the first request for a connection.
- To do your own service time calculations, you can do something like:
%serviceTime = %(system):currentTimeMilliseconds - %(system):connectionStartTimeMilliseconds
A satisfactory result is not guaranteed if this code is run on a VTAM 3270 thread.