SourcePoint AMD Help

Table of Contents

time

Return the current calendar time as an ord4 value.

Syntax

[result =] time()

Where:

result

specifies a debug object of type ord4 to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

Discussion

The time command puts the date and time function in internal format (seconds since Greenwich Mean Time, January 1, 1970). The time function returns the value as an ord4 data type.

Example

To time an operation (in seconds):

Command input:

define ord4 startTime = time

ย 

(operation to time)

ย 

printf("time = %d seconds\n", time - startTime)

Related Topics: