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

# syscgetcurrenttimestepf Interface Reference

Provide an interface to get current time step.

## Public Member Functions

| Type | Name |
| - | - |
| type([sysctimestepf](https://developer.synopsys.com/docs/system-coupling/system-coupling-fortran-library/structfortran_1_1sysctimestepf.md)) function | [syscgetcurrenttimestepf](#ae938904830076cfae024948f393b1443) () Provide a function to get current time step. |

## Detailed Description

Provide an interface to get current time step.

Definition at line [695](https://developer.synopsys.com/docs/system-coupling/system-coupling-fortran-library/syscSystemCouplingF_8fi_source) of file [syscSystemCouplingF.fi](https://developer.synopsys.com/docs/system-coupling/system-coupling-fortran-library/syscSystemCouplingF_8fi_source).

## Constructor & Destructor Documentation

### syscgetcurrenttimestepf()

```fortran-free-form theme={null}
type( sysctimestepf ) function syscgetcurrenttimestepf
```

Provide a function to get current time step.

This function returns a time step struct, which contains time step number, start time, and time step size for the current coupling time step.

A default value (time step number 0, start time 0.0, time step size 0.0) is returned if this function is called outside the coupled analysis loop or if the analysis is steady.

**Returns**

a `SyscTimeStepF` type for current time step

Definition at line [708](https://developer.synopsys.com/docs/system-coupling/system-coupling-fortran-library/syscSystemCouplingF_8fi_source) of file [syscSystemCouplingF.fi](https://developer.synopsys.com/docs/system-coupling/system-coupling-fortran-library/syscSystemCouplingF_8fi_source).

```fortran-free-form theme={null}
 !
   import :: sysctimestepf
   type(SyscTimeStepF) :: timeStep
 !
 !DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
 !DIR$ ATTRIBUTES DLLIMPORT :: syscGetCurrentTimeStepF
 !DIR$ ENDIF
 !
```
