Skip to content

Commit

Permalink
Set ExternalVR timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Jan 18, 2019
1 parent 0afae0d commit c9b6fa5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/cpp/ExternalVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ ExternalVR::PushFramePoses(const vrb::Matrix& aHeadTransform, const std::vector<
}
}

timespec spec;
clock_gettime(CLOCK_MONOTONIC, &spec);
m.system.sensorState.timestamp = (double)spec.tv_sec + (double)spec.tv_nsec / 1e09f;

PushSystemState();
}

Expand Down

0 comments on commit c9b6fa5

Please sign in to comment.