X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8e80bb9cec2c90dd61f810fb1525932a434288eb..a5cb4cf37e5dfa9bb9ce5c5e4ccf8d5978d3576f:/include/stg/user_property.h diff --git a/include/stg/user_property.h b/include/stg/user_property.h index 7c65f962..5965a7a6 100644 --- a/include/stg/user_property.h +++ b/include/stg/user_property.h @@ -22,8 +22,6 @@ #include // access -extern volatile time_t stgTime; - namespace STG { //----------------------------------------------------------------------------- @@ -186,7 +184,7 @@ template inline UserProperty::UserProperty(T& val) : value(val), - modificationTime(stgTime), + modificationTime(time(NULL)), beforeNotifiers(), afterNotifiers() { @@ -196,7 +194,7 @@ template inline void UserProperty::ModifyTime() noexcept { - modificationTime = stgTime; + modificationTime = time(NULL); } //----------------------------------------------------------------------------- template @@ -212,7 +210,7 @@ void UserProperty::Set(const T& rvalue) (*ni++)->Notify(oldVal, rvalue); value = rvalue; - modificationTime = stgTime; + modificationTime = time(NULL); ni = afterNotifiers.begin(); while (ni != afterNotifiers.end())