फ़ंक्शन now [SWS_CORE_06432] Upstream: RS_AP_00130
static time_point now () noexcept;
Return a time_point representing the current value of the clock.
स्टैटिक फ़ंक्शन 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" |
|---|---|
| Scope | class ara::core::SteadyClock |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| time_point | a 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
Recorded Revisions (7):
- R25-11
rel:R25-11#bd3e18002026-09-30 - R20-11
rel:R20-11#2ebaac9e2026-10-14 - R21-11
rel:R21-11#2ebaac9e2026-10-14 - R22-11
rel:R22-11#23f195162026-10-14 - R23-11
rel:R23-11#1e8f88b82026-10-14 - R24-11
rel:R24-11#5c6a8c472026-10-14 - R25-11
rel:R25-11#5c6a8c472026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · जर्मन मूल