Skip to content

Commit

Permalink
Merge pull request #80 from mcorbin/feat/time-micros-eventdsl
Browse files Browse the repository at this point in the history
Set time_micros in EventDSL
  • Loading branch information
jamtur01 authored Apr 17, 2017
2 parents b15af3b + abe40e2 commit 5e4c9e4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ public EventDSL time(Null n) {

public EventDSL time(float time) {
builder.setTime((long) time);
builder.setTimeMicros((long) (time * 1000000));
return this;
}

public EventDSL time(double time) {
builder.setTime((long) time);
builder.setTimeMicros((long) (time * 1000000));
return this;
}
public EventDSL time(long time) {
Expand Down

0 comments on commit 5e4c9e4

Please sign in to comment.