DEENESPTFRRUARHIKOZHNL

클래스 ara::core::SteadyClock

[SWS_CORE_06401] Upstream: RS_AP_00130

class SteadyClock final {...};

This clock represents a monotonic clock. The time points of this clock cannot decrease as physical time moves forward and the time between ticks of this clock is constant.

Header-Datei#include "ara/core/steady_clock.h"
Forwarding-Header#include "ara/core/core_fwd.h"
Scopenamespace ara::core

사용자 가이드AI 생성

시간 불변 구간 측정 및 데드라인을 위해 나노초 분해능을 갖춘 엄격한 단조 시계를 제공합니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: c5876cb77c90 출처 열린 질문 (2)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

시간 불변 구간 측정 및 데드라인을 위해 나노초 분해능을 갖춘 엄격한 단조 시계를 제공합니다.

이 클래스는 시점이 결코 감소하지 않는 시간 간격 및 기한 측정을 위해 나노초 분해능을 갖춘 단조롭고 균일한 시계를 제공합니다([SWS_CORE_06431], [SWS_CORE_06413]). 애플리케이션은 정적 함수 now()를 통해 스레드 안전하고 예외 위험 없이 현재 타임스탬프를 가져옵니다 [SWS_CORE_06432]. 두 시점의 차이를 구함으로써 작업의 실행 시간을 견고하게 측정할 수 있습니다.

컨텍스트

ara::core::SteadyClock 클래스는 AUTOSAR Adaptive Platform에서 정밀한 시간 측정을 위한 단조 시계를 제공합니다. 주요 책임은 지속적으로 증가하는 시점을 제공하는 것입니다. 이 시계의 시점은 물리적 시간이 진행됨에 따라 결코 감소할 수 없으며 틱 사이의 지속 시간은 일정합니다. is_steady = true 속성을 통해 [SWS_CORE_06431] 이러한 불변성이 보장됩니다.

이 클래스의 시간 모델은 C++ 표준 시계 개념을 따르며 시간 간격 및 시점의 측정 단위를 표준화합니다. 시계의 틱 주기는 형식 별칭 period을 통해 나노초로 정의됩니다([SWS_CORE_06413]: using period = std::nano). 틱 수의 표현 형식으로는 부호 있는 64비트 정수 형식이 사용됩니다([SWS_CORE_06412]: using rep = std::int64_t). 이를 바탕으로 using duration = std::chrono::duration<rep, period>는 상대적인 시간 간격을 나타내며 [SWS_CORE_06411], using time_point = std::chrono::time_point<SteadyClock, duration>은 특정 시점을 이 시계에 바인딩합니다 [SWS_CORE_06414]. 일반적인 상호작용 파트너는 실행 시간을 측정하거나 데드라인을 모니터링해야 하는 애플리케이션 컴포넌트입니다.

수명 주기

이 클래스는 final으로 지정되어 있으며 오직 정적 인터페이스만을 포함합니다. Interpretation: 클래스가 정적 네임스페이스이자 time_point의 형식 식별자 역할을 하므로 실제 사용을 위해 ara::core::SteadyClock의 인스턴스화는 의도되지도 않았고 필요하지도 않습니다. 질문 Q-08b479dc497c8f74 (열림) 상태 전이, 초기화 단계 또는 소멸 루틴이 존재하지 않습니다.

여러 스레드에서의 동시 액세스를 위해 핵심 조회 함수 now()은 명시적으로 스레드 안전(thread-safe)으로 지정되어 있습니다 [SWS_CORE_06432]. 따라서 여러 스레드가 추가적인 외부 동기화 없이 동시적으로 타임스탬프를 획득할 수 있습니다.

사용 경로

ara::core::SteadyClock의 일반적인 사용 경로는 프로그램 섹션의 실행 지속 시간 측정입니다. 시작 시 호출자는 정적 메서드 ara::core::SteadyClock::now()을 통해 현재 타임스탬프를 조회하며 [SWS_CORE_06432], 이를 통해 time_point 형식의 객체가 반환됩니다 [SWS_CORE_06414]. 그 후 애플리케이션은 의도된 작업을 실행합니다. 작업 완료 후 now()에 대한 재호출이 수행됩니다 [SWS_CORE_06432]. 시작 시점을 종료 시점에서 뺌으로써 애플리케이션은 경과된 지속 시간을 duration로 계산합니다 [SWS_CORE_06411]. is_steady는 시계가 뒤로 가지 않음을 보장하므로 [SWS_CORE_06431], 물리적 시간이 진행됨에 따라 결과는 항상 단조적이며 신뢰할 수 있습니다.

ara::core::SteadyClock을 사용한 시간 간격 측정애플리케이션SteadyClocknow()t_start: time_point작업 실행now()t_ende: time_pointDauer = t_ende - t_start

시퀀스 다이어그램: 두 시점 획득을 통한 지속 시간 측정의 일반적인 흐름. 출처: [SWS_CORE_06432], [SWS_CORE_06411], [SWS_CORE_06414]

오류 시나리오

ara::core::SteadyClock의 인터페이스는 오류 코드나 오류 상태를 규정하지 않습니다. 함수 now()은 noexcept로 선언되어 있으며 예외 안전(exception safe) 속성을 가집니다 [SWS_CORE_06432]. now() 호출은 어떠한 정상 작동 조건에서도 실패하지 않으며 time_point 형식의 유효한 값을 보장하며 반환합니다 [SWS_CORE_06414].

Interpretation: 카운터 rep의 이론적인 오버플로는 [SWS_CORE_06412] 나노초 틱 기준 64비트 값 범위로 인해 실제 시스템에서 계산상 수백 년의 작동 시간이 지나야 발생할 수 있으므로 현실적인 오류 위험을 나타내지 않는 것으로 추정됩니다. 질문 Q-9ce575da867b8203 (열림)

이 가이드는 AUTOSAR Adaptive Platform 릴리스 R25-11 사양을 기반으로 합니다.

멤버 맵

메서드

1

상수

1

클래스 다이어그램

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__core__SteadyClock455 SteadyClock + is_steady + now()

상세 보기

개요에서 항목을 선택하세요.

메서드

now 함수

Return a time_point representing the current value of the clock.

static time_point now () noexcept;

타입 별칭

duration 타입 별칭

std::chrono::duration<rep, period> ≙ std::chrono::duration

using duration = std::chrono::duration<rep, period>;
period 타입 별칭

A std::ratio type representing the tick period of the clock, in seconds . ≙ std::ratio

using period = std::nano;
rep 타입 별칭

An arithmetic type representing the number of ticks in the clock’s duration .

using rep = std::int64_t;
time_point 타입 별칭

std::chrono::time_point<ara::core::SteadyClock> ≙ std::chrono::time_point

상수

is_steady 변수

steady clock flag, always true

static constexpr bool is_steady = true;

메서드 문서

함수 now [SWS_CORE_06432] Upstream: RS_AP_00130

static time_point now () noexcept;

Return a time_point representing the current value of the clock.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 24ebb1344fe4 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

정적 함수 ara::core::SteadyClock::now()은(는) 클록의 현재 카운터 값을 나타내는 time_point을(를) 동기식으로 반환합니다 [SWS_CORE_06432]. 사용하려면 헤더 파일 ara/core/steady_clock.h을(를) 포함해야 합니다 [SWS_CORE_06432]. 이 메서드는 ara::core::SteadyClock에 정적으로 바인딩되어 있으므로 클래스의 인스턴스화가 필요하지 않으며, 스코프를 통해 직접 접근이 이루어집니다.

오류 처리와 관련하여 이 함수는 noexcept(으)로 선언되어 있으며 예외 안전(exception safe)으로 지정되어 있습니다 [SWS_CORE_06432]. 연산이 오류 없이 반환되는 것이 보장되므로, 호출자는 시간 조회에 대한 예외 처리를 마련할 필요가 없습니다.

동시성 및 제약 조건과 관련하여 now()은(는) 스레드 안전(thread-safe)으로 명시되어 있습니다 [SWS_CORE_06432]. 이 함수는 애플리케이션 측 동기화 없이 임의의 실행 컨텍스트 및 스레드에서 병렬로 호출될 수 있습니다.

ara::core::SteadyClock의 인터페이스 내에서 이 함수는 주로 상대적 구간 측정 및 실행 시간 결정을 위한 시점을 제공하는 역할을 할 것으로 보입니다(해석: 스코프 및 반환 타입 [SWS_CORE_06432]에서 파생됨). 질문 Q-34b2317714fd4e03 (열림)

이 사용 참고사항은 자동으로 작성되었으며 AUTOSAR Adaptive R25-11 명세를 기반으로 합니다.

Header-Datei#include "ara/core/steady_clock.h"
Scopeclass ara::core::SteadyClock
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
time_pointa time_point

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06432
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06432@rel:R25-11#93003b35
Content hash
93003b35
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06432
Status: valid/unmigrated Version: rel:R25-11#5c6a8c47 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06432@rel:R25-11#5c6a8c47
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#bd3e18002026-09-30
  • R20-11rel:R20-11#2ebaac9e2026-10-14
  • R21-11rel:R21-11#2ebaac9e2026-10-14
  • R22-11rel:R22-11#23f195162026-10-14
  • R23-11rel:R23-11#1e8f88b82026-10-14
  • R24-11rel:R24-11#5c6a8c472026-10-14
  • R25-11rel:R25-11#5c6a8c472026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

타입 별칭 문서

타입 별칭 duration [SWS_CORE_06411] Upstream: RS_AP_00130

using duration = std::chrono::duration<rep, period>;

std::chrono::duration<rep, period>

Header-Datei#include "ara/core/steady_clock.h"
Scopeclass ara::core::SteadyClock
Symbolduration

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06411
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06411@rel:R25-11#f974349d
Content hash
f974349d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06411
Status: valid/unmigrated Version: rel:R25-11#604e5eff Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06411@rel:R25-11#604e5eff
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#8d0579d82026-09-30
  • R20-11rel:R20-11#0b720af62026-10-14
  • R21-11rel:R21-11#0b720af62026-10-14
  • R22-11rel:R22-11#da4c16bd2026-10-14
  • R23-11rel:R23-11#604e5eff2026-10-14
  • R24-11rel:R24-11#604e5eff2026-10-14
  • R25-11rel:R25-11#604e5eff2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

타입 별칭 period [SWS_CORE_06413] Upstream: RS_AP_00130

using period = std::nano;

A std::ratio type representing the tick period of the clock, in seconds .

Header-Datei#include "ara/core/steady_clock.h"
Scopeclass ara::core::SteadyClock
Symbolperiod

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06413
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06413@rel:R25-11#22c3ee7a
Content hash
22c3ee7a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06413
Status: valid/unmigrated Version: rel:R25-11#23d3f8ae Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06413@rel:R25-11#23d3f8ae
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#b4ea22ad2026-09-30
  • R20-11rel:R20-11#736232b22026-10-14
  • R21-11rel:R21-11#736232b22026-10-14
  • R22-11rel:R22-11#7d2f0f372026-10-14
  • R23-11rel:R23-11#23d3f8ae2026-10-14
  • R24-11rel:R24-11#23d3f8ae2026-10-14
  • R25-11rel:R25-11#23d3f8ae2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

타입 별칭 rep [SWS_CORE_06412] Upstream: RS_AP_00130

using rep = std::int64_t;

An arithmetic type representing the number of ticks in the clock’s duration .

Header-Datei#include "ara/core/steady_clock.h"
Scopeclass ara::core::SteadyClock
Symbolrep

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06412
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06412@rel:R25-11#0eea3d08
Content hash
0eea3d08
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06412
Status: valid/unmigrated Version: rel:R25-11#2bb738d9 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06412@rel:R25-11#2bb738d9
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#bf21afd72026-09-30
  • R20-11rel:R20-11#a465a7e92026-10-14
  • R21-11rel:R21-11#00a900252026-10-14
  • R22-11rel:R22-11#12d2049d2026-10-14
  • R23-11rel:R23-11#9dca85212026-10-14
  • R24-11rel:R24-11#9dca85212026-10-14
  • R25-11rel:R25-11#2bb738d92026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

타입 별칭 time_point [SWS_CORE_06414] Upstream: RS_AP_00130

using time_point = std::chrono::time_point<SteadyClock, duration>;

std::chrono::time_point<ara::core::SteadyClock>

Header-Datei#include "ara/core/steady_clock.h"
Scopeclass ara::core::SteadyClock
Symboltime_point

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06414
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06414@rel:R25-11#0de7845e
Content hash
0de7845e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06414
Status: valid/unmigrated Version: rel:R25-11#1b006689 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06414@rel:R25-11#1b006689
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#1aef719d2026-09-30
  • R20-11rel:R20-11#c8d776632026-10-14
  • R21-11rel:R21-11#dc1e7e5a2026-10-14
  • R22-11rel:R22-11#8a18d9d52026-10-14
  • R23-11rel:R23-11#9f525c1b2026-10-14
  • R24-11rel:R24-11#1b0066892026-10-14
  • R25-11rel:R25-11#1b0066892026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

상수 / 변수 문서

변수 is_steady [SWS_CORE_06431] Upstream: RS_AP_00130

static constexpr bool is_steady = true;

steady clock flag, always true

Header-Datei#include "ara/core/steady_clock.h"
Scopeclass ara::core::SteadyClock
Symbolis_steady
Typbool

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06431
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06431@rel:R25-11#c2e39570
Content hash
c2e39570
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06431
Status: valid/unmigrated Version: rel:R25-11#577f28aa Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06431@rel:R25-11#577f28aa
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#cc7c9da82026-09-30
  • R20-11rel:R20-11#07665d652026-10-14
  • R21-11rel:R21-11#737caacf2026-10-14
  • R22-11rel:R22-11#6d708f332026-10-14
  • R23-11rel:R23-11#577f28aa2026-10-14
  • R24-11rel:R24-11#577f28aa2026-10-14
  • R25-11rel:R25-11#577f28aa2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill