Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_GetDeviceTime

### Interface Definition

C++C#

    1
    2
    3
    BOOL NET_SDK_GetDeviceTime(
        LONG lUserID,
        DD_TIME* pTime);

    1
    2
    3
    public static extern bool NET_SDK_GetDeviceTime(
        Int32 lUserID,
        ref DD_TIME pTime);

### Function Description

Get the current system time of the device.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
pTimein | `DD_TIME`* | Get the device system time pointer.

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, returns FALSE if failed. Each acquisition takes up to 50 milliseconds. If the video frame has not reached the client within this time, the interface will return failure. You need to call this interface multiple times until the interface returns success.

### Remarks

None

Error Code