---
title: "CLOCK_OFFSET_LAST"
description: "CLOCK_OFFSET_LAST SQL \uD568\uC218\uB294 Invantive UniversalSQL\uC774 \uC2E4\uD589\uB418\uB294 \uC7A5\uCE58\uC758 \uC2DC\uC2A4\uD15C \uC2DC\uACC4\uAC00 \uC778\uD130\uB137 \uC2DC\uACC4\uBCF4\uB2E4 \uBA87 \uBC00\uB9AC\uCD08 \uC55E\uC11C \uC788\uC5C8\uB294\uC9C0\uB97C \uAC00\uC838\uC635\uB2C8\uB2E4\u2026"
language: ko
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ko/docs/invantive-universalsql/grammar/sql-functions/clock-offset-last
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/clock-offset-last
updated: 2026-12-04T13:26:08Z
license: https://documentation.invantive.eu/ko/
---

## 구문
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> CLOCK_OFFSET_LAST[CLOCK_OFFSET_LAST]:::quoted
    CLOCK_OFFSET_LAST --> End((END))
```

## 목적
`CLOCK_OFFSET_LAST` SQL 함수는 Invantive UniversalSQL이 실행되는 장치의 시스템 시계가 마지막 측정 시점에 인터넷 시계보다 몇 밀리초 앞서 있었는지를 가져옵니다. 이 측정값은 Invantive Cloud와 주고받은 메시지를 기준으로 계산됩니다. 시스템 시계가 뒤처져 있었을 때는 숫자가 음수입니다. 이 함수는 괄호 없이 사용할 수 있습니다.

참조: [[CLOCK_OFFSET_AVG]], [[NOW]] 및 [[UTC]].

반환값: 시스템 시계의 마지막으로 측정된 오프셋(밀리초 단위)을 숫자로 반환합니다.

## 예시
다음 예제는 시스템 시계의 마지막으로 측정된 오프셋(밀리초 단위)을 조회합니다. 실제 값은 장치와 실행 시점에 따라 다릅니다:
```sql
select clock_offset_last

-------------------
118
```

