package org.sfc.events;
/**
* An event containing time information.
*
* @author Thomas Weise
*/
public class TimedEvent extends SfcEvent
{
/**
* The serial version uid.
*/
private static final long serialVersionUID = 2;
/**
* The absolute time this event was thrown at.
*/
private final long m_time ;
/**
* Create a new <code>TimedEvent</code>. You cannot do this directly,
* but can create derived class instances.
* @param p_source The source of the event.
*/
protected TimedEvent(final Object p_source)
{
super(p_source);
this.m_time = System.currentTimeMillis();
}
/**
* Returns the time this event was thrown at.
* @return The time this event was thrown at.
*/
public final long get_time ()
{
return this.m_time;
}
}