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

उपयोगकर्ता गाइडएआई जनित

किसी टाइमबेस संसाधन के स्थानीय समय बिंदुओं को मैप करने के लिए std::chrono::time_point के लिए एक स्यूडो-क्लॉक (pseudo-clock) के रूप में कार्य करता है।
एआई-जनित असत्यापित मॉडल: 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++ मानक लाइब्रेरी प्रणाली में एक स्यूडो-क्लॉक के रूप में कार्य करती है और टाइमबेस संसाधन [SWS_TS_01264] के सापेक्ष स्थानीय समय का प्रतिनिधित्व करने के लिए std::chrono::time_point के लिए क्लॉक-टेम्पलेट-आर्ग्यूमेंट के रूप में कार्य करती है। क्लॉक आवश्यकताओं को पूरा करने के लिए, यह नैनोसेकंड रिज़ॉल्यूशन और अवधि के लिए मानकीकृत प्रकार-उपनाम (type aliases) प्रदान करती है। एक निर्णायक सीमा शर्त के रूप में, क्लॉक को is_steady = false के माध्यम से गैर-मोनोटोनिक (non-monotonic) के रूप में निर्दिष्ट किया गया है, जिसके द्वारा सिंक्रोनाइज़ेशन प्रक्रियाओं के परिणामस्वरूप समय के उतार-चढ़ाव (time jumps) को ध्यान में रखा जाता है [SWS_TS_01265]।

संदर्भ

क्लास या संरचना ara::tsync::TimeBase AUTOSAR Adaptive Platform के मॉड्यूल tsync में एक स्यूडो-क्लॉक (pseudo-clock) की भूमिका ग्रहण करती है। C++ स्तर पर, यह मुख्य रूप से std::chrono::time_point के लिए पहले टेम्पलेट आर्ग्यूमेंट के रूप में कार्य करती है, ताकि सिमेंटिक रूप से यह स्थापित किया जा सके कि एक टाइमस्टैम्प अभी तक अनिर्दिष्ट टाइमबेस संसाधन (timeBaseResource) के संबंध में स्थानीय समय का प्रतिनिधित्व करता है [SWS_TS_01264]। एक स्थिर समय क्वेरी के साथ स्वयं एक सक्रिय समय स्रोत के रूप में कार्य करने के बजाय, TimeBase मानक लाइब्रेरी के भीतर एक औपचारिक लिंक के रूप में कार्य करती है std::chrono।

मानकीकृत प्रकार परिभाषाएँ प्रदान करके, TimeBase C++ समय मापन के जेनेरिक तंत्र को सिंक्रोनाइज़ेशन मॉड्यूल से जोड़ती है। समय बिंदुओं या समयावधियों के साथ काम करने वाले उपभोक्ता और घटक टाइप किए गए टाइमस्टैम्प का आदान-प्रदान करने के लिए संरचना के उपनाम प्रकारों (alias types) का उपयोग करते हैं। इस तरह, यह सुनिश्चित किया जाता है कि 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 उपयोग करता है

संदर्भ आरेख (Context diagram): टाइमबेस संसाधन से समय बिंदुओं को बांधने के लिए C++ क्रोनो प्रकार प्रणाली में स्यूडो-क्लॉक के रूप में TimeBase का अंतःस्थापन (embedding)। स्रोत: [SWS_TS_01263], [SWS_TS_01264]

जीवनचक्र

एक विशुद्ध डेटा और प्रकार संरचना (हेडर ara/tsync/timestamp.h में struct TimeBase के रूप में घोषित) के रूप में, ara::tsync::TimeBase में इनिशियलाइज़ किए गए या संचालित रनटाइम घटक के अर्थ में कोई गतिशील जीवनचक्र चरण नहीं होते हैं। अभीष्ट कार्य के लिए इस संरचना के ऑब्जेक्ट्स का इंस्टेंटिएशन अनिवार्य रूप से आवश्यक नहीं है; यह मुख्य रूप से संकलन समय (compile-time) पर C++ प्रकार प्रणाली के स्तर पर मौजूद है।

C++ क्लॉक आवश्यकताओं (C++ Clock Requirements) की औपचारिक आवश्यकताओं को पूरा करने के लिए, TimeBase सभी आवश्यक प्रकार-उपनामों और स्थिरांकों को परिभाषित करती है। इसमें समय टिक्स की संख्या [SWS_TS_01261] का प्रतिनिधित्व करने के लिए std::int64_t के रूप में मौलिक काउंटर प्रकार rep और साथ ही std::nano [SWS_TS_01262] के रूप में समय टिक अंतराल period शामिल है, जो नैनोसेकंड रेंज में एक रिज़ॉल्यूशन के अनुरूप है। एक युग (epoch) के बाद से समय को मापने की अवधि प्रकार-उपनाम duration के माध्यम से std::chrono::duration<rep, period> के रूप में प्रदान की जाती है [SWS_TS_01263]।

समवर्तीता (concurrency) और चालू प्रणाली में व्यवहार के संबंध में, संरचना बूलियन मान false [SWS_TS_01265] के साथ स्थिर स्थिरांक (static constant) is_steady घोषित करती है। यह C++ क्रोनो फ्रेमवर्क को संकेत देता है कि अंतर्निहित क्लॉक मोनोटोनिक (steady) नहीं है। व्याख्या: यह संभवतः इस तथ्य के कारण है कि मॉड्यूल tsync में समय सिंक्रोनाइज़ेशन प्रक्रियाएं स्थानीय टाइमबेस में समायोजन या छलांग का कारण बन सकती हैं, यही कारण है कि लगातार माप सख्त एकरसता (monotonicity) की गारंटी नहीं देते हैं। प्रश्न Q-93a56c0eb2d35c7b (खुला) चूंकि संरचना स्वयं किसी परिवर्तनीय स्थिति को संपुटित (encapsulate) नहीं करती है, इसलिए सभी प्रकार के उपयोग और स्थिरांकों तक पहुंच स्वाभाविक रूप से समवर्ती-सुरक्षित (concurrency-safe) हैं।

उपयोग पथ

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] पर आधारित है, जिससे मानक-अनुरूप अवधि गणना और अन्य समय इकाइयों में रूपांतरण संभव होता है।
  • मानक एल्गोरिदम के साथ अंतर-संचालनीयता (Interoperability): क्लॉक प्रकार की आवश्यकताओं को पूरी तरह से पूरा करके, मालिकाना समय संरचनाओं का उपयोग किए बिना समय बिंदुओं और समय अंतरालों को std::chrono के मानक लाइब्रेरी फ़ंक्शनों में निर्बाध रूप से पारित किया जा सकता है।

व्याख्या: चूंकि 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#7887a240
Content hash
7887a240
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#d6c2ab40
Content hash
d6c2ab40
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#66987a32
Content hash
66987a32
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#1b7d7936
Content hash
1b7d7936
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#cc8633b7
Content hash
cc8633b7
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