mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 13:01:50 +01:00
Print the sleep duration before actually sleeping
This commit is contained in:
parent
c708c353e3
commit
180ba97440
@ -263,12 +263,12 @@ namespace skyline::kernel::svc {
|
|||||||
state.logger->Debug("svcSleepThread: Yielding thread: {}", in);
|
state.logger->Debug("svcSleepThread: Yielding thread: {}", in);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
state.logger->Debug("svcSleepThread: Thread sleeping for {} ns", in);
|
||||||
struct timespec spec = {
|
struct timespec spec = {
|
||||||
.tv_sec = static_cast<time_t>(state.ctx->registers.x0 / 1000000000),
|
.tv_sec = static_cast<time_t>(state.ctx->registers.x0 / 1000000000),
|
||||||
.tv_nsec = static_cast<long>(state.ctx->registers.x0 % 1000000000)
|
.tv_nsec = static_cast<long>(state.ctx->registers.x0 % 1000000000)
|
||||||
};
|
};
|
||||||
nanosleep(&spec, nullptr);
|
nanosleep(&spec, nullptr);
|
||||||
state.logger->Debug("svcSleepThread: Thread sleeping for {} ns", in);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user