# _CP_time

The _CP_time function is equivalent to the
 `*result* = time()` BASIC statement.

## Syntax

```
 int _CP_time(int* result)
```

## Description

This function returns -1 if
an error occurs. The error code is contained in _CP_errno.

## Example(s)

```
 /* Prints the numeric time. */

 int i;

 _CP_time(&i);
 _CP_unix_env();
 printf("%d\n",i);
```

## See also

- [C functions overview](https://d3codex.com/cfunctions/c-functions-overview/)

---
Source: https://d3codex.com/cfunctions/cp-time/ - part of the D3Codex reference.
