Available inall subroutines.
Returns a string representation of the given RTIME typed time value expressed to the resolution specified by the unit.
unit- A string of one of the four possible unit values:
rtime- A time value parameter of type RTIME.
The return value will be of type STRING, being the text based representation of the given time value formatted according to the unit type as specified by the following criteria:
|Whole seconds only with no decimal point|
|Whole seconds followed by a decimal point with three decimal places|
|Whole seconds followed by a decimal point with six decimal places|
|Whole seconds followed by a decimal point with nine decimal places|
unit argument is not a valid unit string,
fastly.error will be set to
set beresp.X-Connect-Time-Taken = time.runits("ns", time.beconn.connect_direct);