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

دليل المستخدممولَّد بالذكاء الاصطناعي

تعمل كساعة وهمية (Pseudo-Clock) لـ std::chrono::time_point لتمثيل نقاط زمنية محلية لمورد قاعدة زمنية.
مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: f515350f98f7 المصدر أسئلة مفتوحة (3)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تعمل كساعة وهمية (Pseudo-Clock) لـ std::chrono::time_point لتمثيل نقاط زمنية محلية لمورد قاعدة زمنية.

تعمل الفئة ara::tsync::TimeBase كساعة وهمية في نظام مكتبة C++ القياسية وتُستخدم كمعامل قالب ساعة لـ std::chrono::time_point لتمثيل الأوقات المحلية بالنسبة إلى مورد قاعدة زمنية [SWS_TS_01264]. ومن أجل استيفاء متطلبات الساعة، توفر أسماء بديلة موحدة للأنواع (Type Aliases) بدقة النانو ثانية والمدة. وكشرط حدي أساسي، تم تحديد الساعة عبر is_steady = false على أنها غير رتيبة (non-steady)، مما يتيح مراعاة القفزات الزمنية الناتجة عن عمليات المزامنة [SWS_TS_01265].

السياق

تتولى الفئة أو البنية ara::tsync::TimeBase في الوحدة tsync من AUTOSAR Adaptive Platform دور ساعة وهمية (Pseudo-Clock). وتُستخدم على مستوى C++ بصفة أساسية كمعامل قالب أول لـ std::chrono::time_point، لتحديد دلالي بأن طابع الوقت يمثل الوقت المحلي بالنسبة إلى مورد قاعدة زمنية لم يتم تحديده بدقة بعد (timeBaseResource) [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 يستخدم

مخطط سياقي: تضمين TimeBase كساعة وهمية في نظام أنواع C++-Chrono لربط النقاط الزمنية بمورد قاعدة زمنية. المصادر: [SWS_TS_01263]، [SWS_TS_01264]

دورة الحياة

بصفتها بنية بيانات وأنواع صرفة (تم التصريح عنها كـ struct TimeBase في ملف الترويسة ara/tsync/timestamp.h)، لا تمتلك ara::tsync::TimeBase مراحل دورة حياة ديناميكية بمفهوم مكون وقت التشغيل المهيأ أو المشغل. ولا يُعد إنشاء كائنات من هذه البنية أمراً ضرورياً للوظيفة المخصصة لها؛ فهي موجودة أساساً على مستوى نظام أنواع C++ في وقت التصريف (Compile-Time).

لاستيفاء المتطلبات الشكلية لساعة C++ (متطلبات C++ Clock Requirements)، تُعرّف TimeBase جميع الأسماء البديلة للأنواع والثوابت المطلوبة. ويتضمن ذلك نوع العداد الأساسي rep كـ std::int64_t لتمثيل عدد دقات الوقت (Time Ticks) [SWS_TS_01261]، وفترة دقة الوقت period كـ std::nano [SWS_TS_01262]، وهو ما يقابل دقة في نطاق النانو ثانية. ويتم توفير المدة المخصصة لقياس الوقت المنقضي منذ حقبة زمنية (Epoch) عبر الاسم البديل للنوع duration كـ std::chrono::duration<rep, period> [SWS_TS_01263].

فيما يتعلق بالتزامن والسلوك في النظام أثناء التشغيل، تصرّح البنية عن الثابت الاستاتيكي is_steady بالقيمة المنطقية (Boolean) false [SWS_TS_01265]. ويشير ذلك لإطار عمل C++-Chrono إلى أن الساعة الأساسية غير رتيبة (غير steady). تفسير: من المرجح أن يعود ذلك إلى أن عمليات مزامنة الوقت في الوحدة tsync قد تُحدث تعديلات أو قفزات في القاعدة الزمنية المحلية، ولهذا لا تضمن القياسات المتتالية رتابة صارمة. سؤال Q-93a56c0eb2d35c7b (مفتوح) ونظراً لأن البنية ذاتها لا تغلف أي حالة قابلة للتعديل، فإن كافة استخدامات الأنواع والوصول إلى الثوابت تُعد بطبيعتها آمنة تزامنيّاً.

مسار الاستخدام

يكمن مسار الاستخدام النموذجي لـ ara::tsync::TimeBase في التصريح عن قيم الوقت ومعالجتها وتمريرها داخل التطبيقات المتزامنة. ولا يقوم المطورون والمكونات البرمجية التكيفية بإنشاء نسخة من الساعة ذاتها، بل يصلون إلى الاسم البديل للنوع المركزي time_point، المعرّف كـ std::chrono::time_point<TimeBase> [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 Types)، يمكن تمرير النقاط الزمنية والفترات الزمنية بسلاسة إلى دوال المكتبة القياسية لـ std::chrono، دون الحاجة إلى استخدام بنى وقت خاصة (Proprietary).

تفسير: نظراً لأن TimeBase مصممة كساعة وهمية، فإنها لا توفر بنفسها دالة عضو ثابتة now()؛ ومن المرجح أن يتم التحديد الفعلي لقيمة الوقت لمثل هذا time_point [SWS_TS_01264] عبر خدمات أو واجهات أخرى للوحدة tsync، والمرتبطة بـ timeBaseResource المشار إليها. سؤال Q-2a528a99023dad41 (مفتوح)

يستند هذا الدليل إلى مواصفة AUTOSAR Adaptive Platform R25-11.

خريطة الأعضاء

أسماء الأنواع البديلة

4

الثوابت

1

مخطط الفئة

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#a2e04069
Content hash
a2e04069
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#607ccb47
Content hash
607ccb47
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#abe208b3
Content hash
abe208b3
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#2f5d78d2
Content hash
2f5d78d2
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#257e43f1
Content hash
257e43f1
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