source: trunk/man/arm_get_arrival_time.3 @ 704

Revision 614, 2.3 KB checked in by dcarter, 4 years ago (diff)

see #111 - Build beta3

Line 
1.\" Copyright (c) 2005-2008 David Carter <dcarter@arm4.org> and others.
2.\" All rights reserved.   This program and the accompanying materials
3.\" are made available under the terms of the Eclipse Public License v1.0
4.\" which accompanies this distribution, and is available at
5.\" http://www.eclipse.org/legal/epl-v10.html
6.TH "arm_get_arrival_time" 3 "August 2008" "arm4.org" "ARM 4 Programmer's Manual"
7.SH NAME
8arm_get_arrival_time \- store current time
9.SH SYNOPSIS
10.B #include <arm4.h>
11.sp
12\fBarm_error_t
13.br
14arm_get_arrival_time(
15.br
16    arm_arrival_time_t *\fIopaque_time\fB);\fR
17.SH DESCRIPTION
18\fBarm_get_arrival_time()\fR stores a 64-bit integer representing the current time.
19
20There are situations in which there is a significant delay between the time when processing of a
21transaction begins and when all the context property values that are needed before
22\fBarm_start_transaction()\fR can be executed are known. In order to get a more accurate response
23time, \fBarm_get_arrival_time()\fR can be used to capture an implementation\-defined representation
24of the current time. This integer value is later stored in the arrival time sub\-buffer when
25\fBarm_start_transaction()\fR executes. The ARM library will use the "arrival time" as the start time
26rather than the moment when the \fBarm_start_transaction()\fR executes.
27
28\fIopaque_time\fR is a pointer to an \fBarm_int64_t\fR that will contain the arrival time value. Note that the
29value is implementation-defined so the application should not make any
30conclusions based on its contents.
31.SH "RETURN VALUE"
32On success, the function returns \fBARM_SUCCESS\fR. A non-zero value indicates
33an error.
34.SH ERRORS
35If the return code is negative, an error occurred. If the return code is not negative, an error may
36or may not have occurred - the determination of what is an error and whether an error code is
37returned is at the discretion of the ARM implementation. The application can test the return code
38if it wants to provide its own error logging.
39
40The following errors are recognized by this implementation, but may not be portable to other implementations:
41
42.TP
43.B ARM_FAILURE_NULL_ARGUMENT
44The \fIopaque_time\fR must not be null.
45.SH "CONFORMING TO"
46ARM Issue 4.0 C Language Bindings, Version 2
47.SH EXAMPLE
48None.
49.SH "SEE ALSO"
50.BR arm_start_transaction (3)
Note: See TracBrowser for help on using the repository browser.