mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-29 13:29:09 +00:00
logging connection start time
This commit is contained in:
parent
3b3580e439
commit
e3bf2b58a6
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: RadioConnection.java,v 1.7 2009/03/03 13:42:45 fros4943 Exp $
|
* $Id: RadioConnection.java,v 1.8 2009/04/01 23:33:05 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja;
|
package se.sics.cooja;
|
||||||
@ -52,6 +52,8 @@ public class RadioConnection {
|
|||||||
|
|
||||||
private Vector<Radio> interfered = new Vector<Radio>();
|
private Vector<Radio> interfered = new Vector<Radio>();
|
||||||
|
|
||||||
|
private long startTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new radio connection with given source and no destinations.
|
* Creates a new radio connection with given source and no destinations.
|
||||||
*
|
*
|
||||||
@ -60,6 +62,11 @@ public class RadioConnection {
|
|||||||
*/
|
*/
|
||||||
public RadioConnection(Radio sourceRadio) {
|
public RadioConnection(Radio sourceRadio) {
|
||||||
this.source = sourceRadio;
|
this.source = sourceRadio;
|
||||||
|
startTime = sourceRadio.getMote().getSimulation().getSimulationTime();
|
||||||
|
}
|
||||||
|
|
||||||
|
public long getStartTime() {
|
||||||
|
return startTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user