---
sourceDocument: 호주 API 참조
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ko-KR/api-reference

 Release :

    - australia

ft:locale :

    - ko-KR

ft:publication_title :

    - 호주 API 참조

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# 스톱워치 ()넥스트 경험 - 클라이언트

# 스톱워치 ()넥스트 경험 - 클라이언트 {#ariaid-title1}

* 릴리스 버전: Australia
* 
* 업데이트 날짜 2026년 03월 12일
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 소요 시간: 2분

StopWatch API넥스트 경험 UI 프레임워크는 .
{#StopWatchAPINX__table_lgv_pzl_rfc__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 시작됨 | [날짜 객체](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | 스톱워치의 시작 날짜 및 시간입니다. 이 값은 [생성자 StopWatch(Object started)](https://servicenow-prod.fluidtopics.net/ujXpL~f7_cSTGJNGudzNRA#StopWatchNX-StopWatch "새 StopWatch를 초기화하는 생성자입니다.") 또는 [restart()](https://servicenow-prod.fluidtopics.net/ujXpL~f7_cSTGJNGudzNRA#StopWatchNX-restart "스톱워치 시작 시간을 현재 날짜 및 시간으로 재설정합니다.") 메서드를 호출할 때 설정됩니다. |
[표 1. 속성]

{#StopWatchAPINX__table_lgv_pzl_rfc}

## StopWatch ()넥스트 경험 - 스톱워치(객체 시작됨) {#ariaid-title2}

새 StopWatch를 초기화하는 생성자입니다.
{#StopWatchNX-StopWatch__table_lgv_pzl_rfc__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 시작됨 | [날짜 객체](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | 옵션입니다. 스톱워치의 시작 시간으로 사용할 날짜 및 시간입니다. 기본값: 현재 날짜 및 시간입니다. |
[표 2. 매개변수]

{#StopWatchNX-StopWatch__table_lgv_pzl_rfc}  
이 예제에서는 현재 날짜 및 시간에 시작하는 새 StopWatch 를 초기화합니다.

    var timer = new nowapi.StopWatch();

## 스톱워치 ()넥스트 경험 - getTime() {#ariaid-title3}

스톱워치가 시작된 이후 경과된 시간(밀리초)을 반환합니다.
{#StopWatchNX-getTime__table_axh_pxl_rfc__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 안 함 |   |   |
[표 3. 매개변수]

{#StopWatchNX-getTime__table_axh_pxl_rfc} {#StopWatchNX-getTime__table_bxh_pxl_rfc__entry__2}

| 유형 | 설명 |
|-|-|
| 번호 | 스톱워치가 시작된 이후 경과한 시간입니다. 단위: 밀리초 |
[표 4. 반환]

{#StopWatchNX-getTime__table_bxh_pxl_rfc}  
이 예제에서는 경과된 StopWatch 시간을 밀리초 단위로 반환합니다.

    var timer = new nowapi.StopWatch();
    console.log(timer.started);  //logs the StopWatch start date and time to the console
    var millis = timer.getTime();

## 스톱워치 ()넥스트 경험 - restart() {#ariaid-title4}

스톱워치 시작 시간을 현재 날짜 및 시간으로 재설정합니다.
{#StopWatchNX-restart__table_wb5_lcm_rfc__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 안 함 |   |   |
[표 5. 매개변수]

{#StopWatchNX-restart__table_wb5_lcm_rfc} {#StopWatchNX-restart__table_xb5_lcm_rfc__entry__2}

| 유형 | 설명 |
|-|-|
| 없음 |   |
[표 6. 반환]

{#StopWatchNX-restart__table_xb5_lcm_rfc}  
이 예에서는 타이머가 시작되고 다시 시작된 이후 경과된 시간(밀리초)을 반환합니다.

    var timer = new nowapi.StopWatch();
    console.log(timer.started);  //logs the StopWatch start date and time to the console
    timer.getTime();  //milliseconds since the timer started
    timer.restart();
    console.log(timer.started);  //logs the new StopWatch start date and time to the console
    timer.getTime();  //milliseconds since the timer restarted

## 스톱워치 ()넥스트 경험 - toString() {#ariaid-title5}

스톱워치가 시작된 이후의 경과 시간을 ISO 8601 형식(HH:mm:ss.sss)으로 반환합니다.
{#StopWatchNX-toString__table_mbh_rcm_rfc__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 안 함 |   |   |
[표 7. 매개변수]

{#StopWatchNX-toString__table_mbh_rcm_rfc} {#StopWatchNX-toString__table_nbh_rcm_rfc__entry__2}

| 유형 | 설명 |
|-|-|
| 문자열 | 시간, 분, 초 및 밀리초를 포함하는 ISO 8601 형식의 기간(HH:mm:ss.sss)입니다. |
[표 8. 반환]

{#StopWatchNX-toString__table_nbh_rcm_rfc}  
이 예제에서는 경과된 스톱워치 시간을 HH:mm:ss.sss 형식으로 반환합니다.

    var timer = new nowapi.StopWatch();
    var duration = timer.toString();


