Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITABase
Commits
6e4cd2ae
Commit
6e4cd2ae
authored
Aug 14, 2020
by
Dipl.-Ing. Jonas Stienen
Browse files
Adding feature to start stopwatch directly on construction, often used this way in tests
parent
8af234d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/ITAStopWatch.h
View file @
6e4cd2ae
...
...
@@ -45,7 +45,7 @@ class ITA_BASE_API ITAStopWatch
{
public:
//! Konstruktor
ITAStopWatch
();
ITAStopWatch
(
bool
bStartImmediately
=
false
);
//! Konstruktor
ITAStopWatch
(
ITAClock
*
pClock
);
...
...
src/ITAISO9613.cpp
View file @
6e4cd2ae
...
...
@@ -94,4 +94,4 @@ void ISO9613::AtmosphericAbsorption( ITABase::CThirdOctaveFactorMagnitudeSpectru
double
dAirAbsorptionFactor
=
AtmosphericAbsorptionFactor
(
dFrequency
,
dDistance
,
dTemperature
,
dHumidity
,
dStaticPressure
);
oA_atm_factor
.
SetMagnitude
(
i
,
(
float
)
dAirAbsorptionFactor
);
}
}
\ No newline at end of file
}
src/ITAStopWatch.cpp
View file @
6e4cd2ae
...
...
@@ -10,7 +10,7 @@
bool
ITAStopWatch
::
m_bInstanceCreated
=
false
;
double
ITAStopWatch
::
m_dStartStopLatency
=
0
;
ITAStopWatch
::
ITAStopWatch
()
ITAStopWatch
::
ITAStopWatch
(
bool
bStartImmediately
/* = false */
)
:
m_pClock
(
ITAClock
::
getDefaultClock
()
)
{
// Falls dies die erste Stopwatch ist die erzeugt wird: Latenz messen
...
...
@@ -38,6 +38,9 @@ ITAStopWatch::ITAStopWatch()
}
reset
();
if
(
bStartImmediately
)
start
();
}
ITAStopWatch
::
ITAStopWatch
(
ITAClock
*
pClock
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment