> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionCallcontextSetTimeToAnswer

# callcontext::SetTimeToAnswer (obsolete)

[Valid for](../../../Shared/FeatureAvailability.md): CANoe DE

## Method Syntax

```plaintext theme={null}
long callContext::SetTimeToAnswer(dword timeMs);
```

## Description

Tells the simulation when it shall return the answer for the call. The answer will be returned after the given time.

Note that you can also use the **AutoAnswerTimeNS** property of a method provider endpoint to set the answer delay for all following calls.

## Parameters

* **timeMs**: Relative time in milliseconds after which the call shall be returned.

## Return Values

—

## Example

```plaintext theme={null}
on fct_Called MirrorAdjustment.providerSide[all,LeftMirror].Adjust
{
  this.Result = Mirrors::AdjustResult::OK;
  // return the call after 10 ms
  this.SetTimeToAnswer(10);
}
```

[Programming with the Communication Concept (C#, Python and CAPL)](../../../CANoeCANalyzer/CommunicationConcept/Programming/CCP.md) • [callcontext::DeferAnswer](CAPLfunctionCallcontextDeferAnswer.md) • [callcontext::ReturnCall](CAPLfunctionCallcontextReturnCall.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.