DEENESPTFRRUARHIKOZHNL

klasse 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

User GuideAI-GEGENEREERD

Stelt een strikt monotone klok met nanoseconderesolutie beschikbaar voor tijdinvariante intervalmetingen en termijnen.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: c5876cb77c90 Herkomst Open vragen (2)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Stelt een strikt monotone klok met nanoseconderesolutie beschikbaar voor tijdinvariante intervalmetingen en termijnen.

De klasse stelt een monotone, gelijkvormige klok met nanoseconderesolutie beschikbaar voor het meten van tijdsduren en termijnen, waarvan de tijdstippen nooit afnemen ([SWS_CORE_06431], [SWS_CORE_06413]). Via de statische functie now() ontvangen applicaties thread-safe en zonder exceptiegevaar het actuele tijdstempel [SWS_CORE_06432]. Door verschilvorming tussen twee tijdstippen kan de uitvoeringsduur van bewerkingen robuust worden bepaald.

Context

De klasse ara::core::SteadyClock stelt in de AUTOSAR Adaptive Platform een monotone klok beschikbaar voor nauwkeurige tijdmeting. Haar hoofdverantwoordelijkheid bestaat uit het leveren van gestaag oplopende tijdstippen; tijdstippen van deze klok kunnen bij voortschrijdende fysieke tijd nooit afnemen, en de duur tussen de ticks is constant. Via de eigenschap is_steady = true [SWS_CORE_06431] wordt deze invariantie gegarandeerd.

Het tijdmodel van de klasse sluit aan bij de C++-standaardklokconcepten en standaardiseert de maateenheden voor tijdsintervallen en tijdstippen. De tick-periode van de klok is via de type-alias period gedefinieerd als nanoseconde ([SWS_CORE_06413]: using period = std::nano). Als representatietype voor het tick-aantal dient een signed 64-bits geheel getaltype ([SWS_CORE_06412]: using rep = std::int64_t). Op deze basis beeldt using duration = std::chrono::duration<rep, period> [SWS_CORE_06411] de relatieve tijdsafstand af, terwijl using time_point = std::chrono::time_point<SteadyClock, duration> [SWS_CORE_06414] specifieke tijdstippen aan deze klok bindt. Typische interactiepartners zijn applicatiecomponenten die uitvoeringsduren moeten vaststellen of termijnen moeten bewaken.

Levenscyclus

De klasse is gespecificeerd als final en bevat uitsluitend statische interfaces. Interpretatie: Een instantiëring van ara::core::SteadyClock is voor het praktische gebruik noch voorzien noch vereist, aangezien de klasse dient als statische naamruimte en type-identificator voor time_point. Vraag Q-08b479dc497c8f74 (open) Er zijn geen toestandsovergangen, initialisatiefasen of vernietigingsroutines.

Voor gelijktijdige toegang vanuit meerdere threads is de centrale opvraagfunctie now() uitdrukkelijk gespecificeerd als thread-safe [SWS_CORE_06432]. Meerdere threads kunnen daarom concurrent en zonder aanvullende externe synchronisatie tijdstempels registreren.

Gebruikspad

Een typisch gebruikstraject van ara::core::SteadyClock is het meten van de uitvoeringsduur van een programmagedeelte. Aan het begin vraagt de aanroeper via de statische methode ara::core::SteadyClock::now() [SWS_CORE_06432] het actuele tijdstempel op, waardoor een object van het type time_point [SWS_CORE_06414] wordt geretourneerd. Vervolgens voert de applicatie de beoogde operatie uit. Na voltooiing daarvan vindt een hernieuwde aanroep van now() [SWS_CORE_06432] plaats. Door aftrekking van het starttijdstip van het eindtijdstip berekent de applicatie de verstreken duur als duration [SWS_CORE_06411]. Omdat is_steady garandeert dat de klok nooit achteruitloopt [SWS_CORE_06431], is het resultaat bij voortschrijdende fysieke tijd altijd monotoon en betrouwbaar.

Tijdsintervalmeting met ara::core::SteadyClockAnwendungSteadyClocknow()t_start: time_pointOperation ausführennow()t_ende: time_pointDauer = t_ende - t_start

Sequentiediagram: Typisch verloop van een duurmeting door bepaling van twee tijdstippen. Bronnen: [SWS_CORE_06432], [SWS_CORE_06411], [SWS_CORE_06414]

Foutscenario's

De interface van ara::core::SteadyClock voorziet niet in foutcodes of fouttoestanden. De functie now() is gedeclareerd als noexcept en bezit de eigenschap exceptieveilig (exception safe) [SWS_CORE_06432]. Een aanroep van now() faalt onder geen enkele reguliere bedrijfsconditie en levert gegarandeerd een geldige waarde van het type time_point [SWS_CORE_06414] terug.

Interpretatie: Een theoretische waarde-overloop van de teller rep [SWS_CORE_06412] zal in reële systemen vanwege het 64-bits waardebereik bij nanosecondeticks rekenkundig pas na meerdere eeuwen bedrijfstijd optreden en vormt zodoende geen praktisch foutrisico. Vraag Q-9ce575da867b8203 (open)

Deze handleiding is gebaseerd op de specificatie AUTOSAR Adaptive Platform Release R25-11.

Ledenkaart

Methoden

1

Constanten

1

Klassendiagram

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

G nara__core__SteadyClock455 SteadyClock + is_steady + now()

Detailweergave

Kies een item in de inhoudsopgave.

Methoden

now functie

Return a time_point representing the current value of the clock.

static time_point now () noexcept;

Type-aliassen

duration typealias

std::chrono::duration<rep, period> ≙ std::chrono::duration

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

A std::ratio type representing the tick period of the clock, in seconds . ≙ std::ratio

using period = std::nano;
rep typealias

An arithmetic type representing the number of ticks in the clock’s duration .

using rep = std::int64_t;
time_point typealias

std::chrono::time_point<ara::core::SteadyClock> ≙ std::chrono::time_point

Constanten

is_steady variabele

steady clock flag, always true

static constexpr bool is_steady = true;

Documentatie van de methoden

functie now [SWS_CORE_06432] Upstream: RS_AP_00130

static time_point now () noexcept;

Return a time_point representing the current value of the clock.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 24ebb1344fe4 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De statische functie ara::core::SteadyClock::now() retourneert synchroon een time_point, die de actuele tellerstand van de klok voorstelt [SWS_CORE_06432]. Voor gebruik dient het headerbestand ara/core/steady_clock.h te worden ingesloten [SWS_CORE_06432]. Aangezien de methode statisch is gebonden aan ara::core::SteadyClock, is instantiëring van de klasse niet nodig; toegang vindt direct via de scope plaats.

Met betrekking tot foutafhandeling is de functie gedeclareerd met noexcept en aangemerkt als uitzonderingsveilig (exception safe) [SWS_CORE_06432]. Aanroepers hoeven derhalve geen exception-afhandeling voor de tijdopvraag te voorzien, aangezien de bewerking gegarandeerd foutloos terugkeert.

Wat betreft gelijktijdigheid en beperkingen is now() gespecificeerd als thread-safe (thread-safe) [SWS_CORE_06432]. De functie mag zonder synchronisatie aan de toepassingszijde parallel vanuit willekeurige uitvoeringscontexten en threads worden aangeroepen.

Binnen de interfaces van ara::core::SteadyClock dient de functie er vermoedelijk primair voor tijdstippen voor relatieve intervalmetingen en looptijdbepalingen beschikbaar te stellen (interpretatie: afgeleid uit de scope en het retourtype [SWS_CORE_06432]). Vraag Q-34b2317714fd4e03 (open)

Deze gebruiksinstructie is geautomatiseerd aangemaakt en is gebaseerd op de specificatie van 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#9aabff12
Content hash
9aabff12
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

Documentatie van de typealiassen

typealias 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#b19f537b
Content hash
b19f537b
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

typealias 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#6a3ef705
Content hash
6a3ef705
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

typealias 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#260ab8cc
Content hash
260ab8cc
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

typealias 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#af70efc8
Content hash
af70efc8
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

Documentatie van constanten / variabelen

variabele 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#767ebc58
Content hash
767ebc58
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