When i create an instance of an object, say, Message m i want to set a field in it, a time stamp.
Nothing to do with databases.
When this object is passed around it will have its time stamp eventually read and compared to the current time of its recipient to calculate delay = timeNow - m.SENT_AT. Both objects exist on the same system and both entities use the system’s clock (actual time, nothing fancy, the delay is important), but I want this in milliseconds.
Something like this: