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

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

समय-अपरिवर्तनीय अंतराल मापों और समय-सीमाओं के लिए नैनोसेकंड रिज़ॉल्यूशन वाली एक दृढ़ता से मोनोटोनिक घड़ी प्रदान करता है।
एआई-जनित असत्यापित मॉडल: 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: व्यावहारिक उपयोग के लिए ara::core::SteadyClock का इंस्टेंटिएशन न तो अभीष्ट है और न ही आवश्यक है, क्योंकि वर्ग time_point के लिए एक स्थिर नेमस्पेस और प्रकार पहचानकर्ता के रूप में कार्य करता है। प्रश्न 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

टाइप उपनाम

4

स्थिरांक

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.

एआई-जनित असत्यापित मॉडल: 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#552b89a1
Content hash
552b89a1
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#f4b72eb4
Content hash
f4b72eb4
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#135e7e13
Content hash
135e7e13
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#59ee8065
Content hash
59ee8065
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#b9389df9
Content hash
b9389df9
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#2f3a3b5e
Content hash
2f3a3b5e
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