Collect a timestamp when the app becomes active and created a class called SWObject.