Use nanosecond timestamp for sensors (thanks @1bsyl!)

This commit is contained in:
Sam Lantinga
2023-01-23 05:33:56 -08:00
parent 34bb0735d8
commit b6646f4de5
3 changed files with 3 additions and 3 deletions

View File

@@ -137,7 +137,7 @@ static int SDL_COREMOTION_SensorOpen(SDL_Sensor *sensor, int device_index)
static void SDL_COREMOTION_SensorUpdate(SDL_Sensor *sensor)
{
Uint64 timestamp = SDL_GetTicks();
Uint64 timestamp = SDL_GetTicksNS();
switch (sensor->type) {
case SDL_SENSOR_ACCEL: