#include <unistd.h> // access
-extern volatile time_t stgTime;
-
namespace STG
{
//-----------------------------------------------------------------------------
inline
UserProperty<T>::UserProperty(T& val)
: value(val),
- modificationTime(stgTime),
+ modificationTime(time(NULL)),
beforeNotifiers(),
afterNotifiers()
{
inline
void UserProperty<T>::ModifyTime() noexcept
{
- modificationTime = stgTime;
+ modificationTime = time(NULL);
}
//-----------------------------------------------------------------------------
template <typename T>
(*ni++)->Notify(oldVal, rvalue);
value = rvalue;
- modificationTime = stgTime;
+ modificationTime = time(NULL);
ni = afterNotifiers.begin();
while (ni != afterNotifiers.end())