mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-03 18:12:14 +02:00
Support UserSystemClock field
This commit is contained in:
parent
09899c0588
commit
3984e5d362
@ -265,11 +265,10 @@ void diagLogImpl(const DiagLogMetadata *metadata) {
|
||||
const char *module = "libnx";
|
||||
diagStringChunkTypeSetValue(&head_packet->payload.module_name, DiagLogDataChunkKey_ModuleName, module, __builtin_strlen(module));
|
||||
|
||||
/* TODO: what conversions does N apply to get the UserSystemClock value? it's not just system tick -> seconds
|
||||
// User system clock = system tick converted to seconds.
|
||||
const u64 tick = armGetSystemTick();
|
||||
const u64 seconds = armTicksToNs(tick) / 1000000000ul;
|
||||
diagU64ChunkTypeSetValue(&head_packet->payload.user_system_clock, DiagLogDataChunkKey_UserSystemClock, seconds);
|
||||
*/
|
||||
|
||||
size_t remaining_len = text_log_len;
|
||||
DiagLogPacket *cur_packet = head_packet;
|
||||
|
Loading…
Reference in New Issue
Block a user