# int Unit::TimeWithoutAttack()

[Family: Unit](/imperivm/en/CKS/familias/unit/)

## Exact signature

```text
int Unit::TimeWithoutAttack()
```

## Description

Unit::TimeWithoutAttack returns the 32-bit subtraction [[shared state][field]] - [Unit[field]], with zero as the invalid-unit fallback.

## Parameters and return type

**Return type:** `int`

The member is called on an object. Its receiver is not repeated among this signature’s arguments.

This signature takes no additional arguments.

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-b337356a98b0c2.md)
- [JSON](/imperivm/CKS/api/entries/api-b337356a98b0c2?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
