Skip to content

Commit

Permalink
lestarch: making zero time use external linkage and a singular defini…
Browse files Browse the repository at this point in the history
…tion (#1428)
  • Loading branch information
LeStarch committed Jun 29, 2022
1 parent 446e409 commit 000a5ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Fw/Time/Time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <Fw/Types/BasicTypes.hpp>

namespace Fw {
const Time ZERO_TIME = Time();

Time::Time() : m_seconds(0), m_useconds(0), m_timeBase(TB_NONE), m_timeContext(0) {
}
Expand Down
2 changes: 1 addition & 1 deletion Fw/Time/Time.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace Fw {
TimeBase m_timeBase; // !< basis of time (defined by system)
FwTimeContextStoreType m_timeContext; // !< user settable value. Could be reboot count, node, etc
};
const static Time ZERO_TIME = Time();
extern const Time ZERO_TIME;

}

Expand Down

0 comments on commit 000a5ee

Please sign in to comment.