Skip to content

Commit 5518221

Browse files
authored
Make accessible from API (#995)
1 parent d41bed3 commit 5518221

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/OMSimulatorLib/System.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,6 +1899,12 @@ oms_status_enu_t oms::System::getReal(const ComRef& cref, double& value)
18991899
}
19001900
}
19011901

1902+
if (cref == "$wallTime")
1903+
{
1904+
value = clock.getElapsedWallTime();
1905+
return oms_status_ok;
1906+
}
1907+
19021908
return logError_UnknownSignal(getFullCref() + cref);
19031909
}
19041910

src/OMSimulatorLib/SystemWC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ oms_status_enu_t oms::SystemWC::doStep()
700700
for (const auto& pair : stepSizeConfiguration.getDynamicThresholds())
701701
{
702702
double sigval;
703-
this -> getReal(pair.first,sigval);
703+
this->getReal(pair.first,sigval);
704704
for (const auto& interval:pair.second)
705705
{
706706
double lower;

0 commit comments

Comments
 (0)