DEENESPTFRRUARHIKOZHNL

구조체 ara::tsync::TimeBase

[SWS_TS_01260] Upstream: RS_AP_00130, RS_TS_00005 문구 아직 가져오지 않음

struct TimeBase {...};

The class TimeBase is a pseudo-clock. The class TimeBase is a pseudo-clock that is used as the first template argument to std::chrono::time_point to indicate that the time point represents local time with respect of a not-yet-specified timeBaseResource.

Header-Datei#include "ara/tsync/timestamp.h"
Forwarding-Header#include "ara/tsync/tsync_fwd.h"
Scopenamespace ara::tsync

사용자 가이드AI 생성

시간 기준 리소스의 로컬 시점을 매핑하기 위해 std::chrono::time_point용 유사 시계(Pseudo-Clock)로 기능합니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: f515350f98f7 출처 열린 질문 (3)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

시간 기준 리소스의 로컬 시점을 매핑하기 위해 std::chrono::time_point용 유사 시계(Pseudo-Clock)로 기능합니다.

ara::tsync::TimeBase 클래스는 C++ 표준 라이브러리 시스템에서 유사 시계(Pseudo-Clock)로 기능하며, 시간 기준 리소스에 대한 로컬 시간을 나타내기 위해 std::chrono::time_point의 시계 템플릿 인수로 사용됩니다 [SWS_TS_01264]. 시계 요구사항을 충족하기 위해 나노초 분해능 및 지속 시간을 위한 표준화된 타입 별칭을 제공합니다. 주요 경계 조건으로서 이 시계는 is_steady = false을(를) 통해 비단조(non-monotonic)로 지정되어 동기화 과정에 따른 시간 점프를 고려합니다 [SWS_TS_01265].

컨텍스트

클래스 또는 구조체 ara::tsync::TimeBase은(는) AUTOSAR Adaptive Platform의 tsync 모듈에서 유사 시계(Pseudo-Clock) 역할을 담당합니다. 이는 C++ 레벨에서 주로 타임스탬프가 아직 구체적으로 명시되지 않은 시간 기준 리소스(timeBaseResource)에 대한 로컬 시간을 나타냄을 의미론적으로 규정하기 위해 std::chrono::time_point의 첫 번째 템플릿 인수로 사용됩니다 [SWS_TS_01264]. 정적 시간 쿼리를 가진 활성 시간 소스로 직접 작동하는 대신, TimeBase은(는) 표준 라이브러리 내에서 형식적 연결고리 역할을 수행합니다 std::chrono.

표준화된 타입 정의를 제공함으로써 TimeBase은(는) C++ 시간 측정의 제네릭 메커니즘을 동기화 모듈에 연결합니다. 시점 또는 시간 범위를 다루는 컨슈머 및 컴포넌트는 구조체의 별칭 타입을 사용하여 타입이 지정된 타임스탬프를 교환합니다. 이를 통해 시간 값이 std::chrono::time_point을(를) 통해 로컬 시간 기준에 명확히 할당되며 절대 시스템 시계나 다른 시간 소스와 잘못 혼동되지 않도록 보장됩니다.

TimeBaseKontext time_point std::chrono::time_point<TimeBase> TimeBase ara::tsync::TimeBase (Pseudo-Clock) TimeBase->time_point dient als Typ-Argument timeBaseResource timeBaseResource (lokale Zeitbasis) timeBaseResource->TimeBase Referenz fuer lokale Zeit Anwendung Anwendungssoftware Anwendung->time_point 사용

컨텍스트 다이어그램: 시점을 시간 기준 리소스에 바인딩하기 위해 C++ Chrono 타입 시스템에 TimeBase를 유사 시계로 내장. 출처: [SWS_TS_01263], [SWS_TS_01264]

수명 주기

순수 데이터 및 타입 구조체(헤더 ara/tsync/timestamp.h에 struct TimeBase(으)로 선언됨)인 ara::tsync::TimeBase은(는) 초기화되거나 작동하는 런타임 컴포넌트의 의미에서 동적인 수명 주기 단계를 보유하지 않습니다. 의도된 기능을 위해 이 구조체 객체의 인스턴스화가 반드시 필요한 것은 아니며, 주로 컴파일 시점의 C++ 타입 시스템 레벨에 존재합니다.

C++ 시계 요구사항(C++ Clock Requirements)을 충족하기 위해 TimeBase은(는) 요구되는 모든 타입 별칭과 상수를 정의합니다. 여기에는 시간 틱 수를 나타내기 위한 std::int64_t 형태의 기본 카운터 타입 rep [SWS_TS_01261]과(와) 나노초 범위의 분해능에 해당하는 std::nano 형태의 시간 틱 간격 period [SWS_TS_01262]이(가) 포함됩니다. 에포크 이후의 시간을 측정하기 위한 지속 시간은 타입 별칭 duration을(를) 통해 std::chrono::duration<rep, period>(으)로 제공됩니다 [SWS_TS_01263].

실행 중인 시스템에서의 동작 및 동시성과 관련하여 이 구조체는 불리언 값 false을(를) 갖는 정적 상수 is_steady을(를) 선언합니다 [SWS_TS_01265]. 이는 기반 시계가 단조적이지(steady) 않음을 C++ Chrono 프레임워크에 알립니다. 해석: 이는 tsync 모듈의 시간 동기화 과정으로 인해 로컬 시간 기준의 조정이나 점프가 발생할 수 있어 연속적인 측정 간에 엄격한 단조성이 보장되지 않기 때문인 것으로 보입니다. 질문 Q-93a56c0eb2d35c7b (열림) 구조체 자체가 가변 상태를 캡슐화하지 않으므로 모든 타입 사용 및 상수에 대한 접근은 본질적으로 동시성에 안전합니다.

사용 경로

ara::tsync::TimeBase의 전형적인 사용 경로는 동기화된 애플리케이션 내에서 시간 값의 선언, 처리 및 전달에 있습니다. 개발자와 어댑티브 소프트웨어 컴포넌트는 시계 자체를 인스턴스화하지 않고, std::chrono::time_point<TimeBase>(으)로 정의된 핵심 타입 별칭 time_point에 접근합니다 [SWS_TS_01264].

  • 타입 정의 및 인터페이스 명세: 애플리케이션은 헤더 ara/tsync/timestamp.h을(를) 포함하고 타임스탬프 시그니처를 선언하기 위해 ara::tsync::TimeBase::time_point [SWS_TS_01264]을(를) 사용합니다. 해석: 이를 통해 시점이 특정 로컬 시간 기준에 의미론적으로 결합된 상태를 유지하도록 보장됩니다. 질문 Q-549e2d377c0a6845 (열림)
  • 산술 및 차분 계산: 두 시점을 서로 감산하면 표현식은 자동으로 ara::tsync::TimeBase::duration [SWS_TS_01263] 타입을 반환합니다. 이는 나노초 단위(period) [SWS_TS_01262] 및 64비트 정수(rep) [SWS_TS_01261]를 기반으로 하므로, 표준을 준수하는 지속 시간 계산 및 다른 시간 단위로의 변환이 가능합니다.
  • 표준 알고리즘과의 상호 운용성: Clock 타입 요구사항을 완전히 충족함으로써, 독점적인 시간 구조체를 사용할 필요 없이 시점과 기간을 std::chrono의 표준 라이브러리 함수에 원활하게 전달할 수 있습니다.

해석: TimeBase은 유사 클록(Pseudo-Clock)으로 설계되었기 때문에 자체적으로 정적 멤버 함수 now()을 제공하지 않습니다. 이러한 time_point [SWS_TS_01264]에 대한 구체적인 시간 값 결정은 참조된 timeBaseResource에 연결된 tsync 모듈의 다른 서비스 또는 인터페이스를 통해 수행될 것으로 보입니다. 질문 Q-2a528a99023dad41 (열림)

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

멤버 맵

클래스 다이어그램

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

G nara__tsync__TimeBase940 «struct» TimeBase + is_steady

상세 보기

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

타입 별칭

duration 타입 별칭

required type declaration to fulfill the C++ Clock requirements used to measure the time since epoch

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

required type declaration to fulfill the C++ Clock requirements representing the tick period of the duration

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

required type declaration to fulfill the C++ Clock requirements representing the number of ticks

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

represents a point in time

using time_point = std::chrono::time_point<TimeBase>;

상수

is_steady 변수

required constant to fulfill the C++ Clock requirements as steady clock

static constexpr bool is_steady = false;

타입 별칭 문서

타입 별칭 duration [SWS_TS_01263] Upstream: RS_AP_00130, RS_TS_00005 문구 아직 가져오지 않음

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

required type declaration to fulfill the C++ Clock requirements used to measure the time since epoch

Header-Datei#include "ara/tsync/timestamp.h"
Scopestruct ara::tsync::TimeBase
Symbolduration

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

Record
AUTOSAR/AP/record/SWS_TS_01263
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01263@rel:R25-11#dd2ba2dc
Content hash
dd2ba2dc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01263
Status: valid/unmigrated Version: rel:R25-11#5cf6241f Versionshistorie & Revisions (1 transition, 6 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_TS_01263@rel:R25-11#5cf6241f
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#77b32a122026-09-30
  • R21-11rel:R21-11#aef3c9f02026-10-14
  • R22-11rel:R22-11#279628e32026-10-14
  • R23-11rel:R23-11#7904d5812026-10-14
  • R24-11rel:R24-11#5cf6241f2026-10-14
  • R25-11rel:R25-11#5cf6241f2026-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_TS_01262] Upstream: RS_AP_00130, RS_TS_00005 문구 아직 가져오지 않음

using period = std::nano;

required type declaration to fulfill the C++ Clock requirements representing the tick period of the duration

Header-Datei#include "ara/tsync/timestamp.h"
Scopestruct ara::tsync::TimeBase
Symbolperiod

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

Record
AUTOSAR/AP/record/SWS_TS_01262
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01262@rel:R25-11#dbd5b957
Content hash
dbd5b957
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01262
Status: valid/unmigrated Version: rel:R25-11#d2f30081 Versionshistorie & Revisions (1 transition, 6 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_TS_01262@rel:R25-11#d2f30081
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#80c2628e2026-09-30
  • R21-11rel:R21-11#f7e53bcc2026-10-14
  • R22-11rel:R22-11#4294ebea2026-10-14
  • R23-11rel:R23-11#b0d1dd9c2026-10-14
  • R24-11rel:R24-11#d2f300812026-10-14
  • R25-11rel:R25-11#d2f300812026-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_TS_01261] Upstream: RS_AP_00130, RS_TS_00005 문구 아직 가져오지 않음

using rep = std::int64_t;

required type declaration to fulfill the C++ Clock requirements representing the number of ticks

Header-Datei#include "ara/tsync/timestamp.h"
Scopestruct ara::tsync::TimeBase
Symbolrep

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

Record
AUTOSAR/AP/record/SWS_TS_01261
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01261@rel:R25-11#760a1954
Content hash
760a1954
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01261
Status: valid/unmigrated Version: rel:R25-11#e1fffc65 Versionshistorie & Revisions (1 transition, 6 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_TS_01261@rel:R25-11#e1fffc65
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#7b8ecc442026-09-30
  • R21-11rel:R21-11#354e4b092026-10-14
  • R22-11rel:R22-11#4f8ca1772026-10-14
  • R23-11rel:R23-11#ffbe9b8d2026-10-14
  • R24-11rel:R24-11#e1fffc652026-10-14
  • R25-11rel:R25-11#e1fffc652026-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_TS_01264] Upstream: RS_AP_00130, RS_TS_00005 문구 아직 가져오지 않음

using time_point = std::chrono::time_point<TimeBase>;

represents a point in time

Header-Datei#include "ara/tsync/timestamp.h"
Scopestruct ara::tsync::TimeBase
Symboltime_point

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

Record
AUTOSAR/AP/record/SWS_TS_01264
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01264@rel:R25-11#7967a15b
Content hash
7967a15b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01264
Status: valid/unmigrated Version: rel:R25-11#611cfa6a Versionshistorie & Revisions (1 transition, 6 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_TS_01264@rel:R25-11#611cfa6a
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#bb2caf412026-09-30
  • R21-11rel:R21-11#f0181e5d2026-10-14
  • R22-11rel:R22-11#1f9672ca2026-10-14
  • R23-11rel:R23-11#611cfa6a2026-10-14
  • R24-11rel:R24-11#611cfa6a2026-10-14
  • R25-11rel:R25-11#611cfa6a2026-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_TS_01265] Upstream: RS_AP_00130, RS_TS_00005 문구 아직 가져오지 않음

static constexpr bool is_steady = false;

required constant to fulfill the C++ Clock requirements as steady clock

Header-Datei#include "ara/tsync/timestamp.h"
Scopestruct ara::tsync::TimeBase
Symbolis_steady
Typbool

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

Record
AUTOSAR/AP/record/SWS_TS_01265
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01265@rel:R25-11#53fbd8e9
Content hash
53fbd8e9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01265
Status: valid/unmigrated Version: rel:R25-11#edb698f5 Versionshistorie & Revisions (1 transition, 6 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_TS_01265@rel:R25-11#edb698f5
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#bb6214b32026-09-30
  • R21-11rel:R21-11#0d0dd4892026-10-14
  • R22-11rel:R22-11#c6a540902026-10-14
  • R23-11rel:R23-11#6b5858822026-10-14
  • R24-11rel:R24-11#edb698f52026-10-14
  • R25-11rel:R25-11#edb698f52026-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