Skip to content

Commit

Permalink
instrumentation event handling improved (related to issue #58)
Browse files Browse the repository at this point in the history
- timestamp works, toString implemented for logging and debugging
  • Loading branch information
miho committed Aug 10, 2015
1 parent 205b915 commit e80353d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class InstrumentationEventImpl implements InstrumentationEvent{
this.type = type;
this.source = source;
this.timeStamp = System.nanoTime();
this.date = new Date(timeStamp);
this.date = new Date();
}

/**
Expand Down Expand Up @@ -71,6 +71,6 @@ public String toString() {
}


return "[ type: " + evtType + ", src: " + getSource() + ", time-stamp: " + date.toString() + "]";
return "[ time-stamp: " + date.toString() + ", type: " + evtType + ", src: " + getSource() + " ]";
}
}

0 comments on commit e80353d

Please sign in to comment.