## `Pref::maxTime` -- time limit for calculation

#### Introduction

`Pref::maxTime(`seconds`)` sets a time limit for calculations in seconds.

#### Call(s)

`Pref::maxTime( <seconds>)`

#### Parameters

`seconds` | - | integer in seconds, or `NIL`

#### Returns

the previously defined memory

#### Related Functions

`Pref::maxMem`, `time`

#### Details

- The value `0` effects no limitation.
- A call of `Pref::maxTime` without arguments returns the current value. The argument `NIL` resets the default value, which is `0`.

#### Example 1

No computation can take more than ten seconds.

    >> Pref::maxTime(10):
       TIME:= time(): while time() - TIME < 11111 do null() end_while

          Error: Watchdog reset [watchdog-time]

#### Changes

- no changes

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000