X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/20d4dd0571e75d254444acf755a01b48a691c7c2..be1b46cc784e43cd28c5521bdcde79bd7463fb40:/include/stg/user_property.h?ds=sidebyside 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())