From 3984e5d36247c50f6e120faa833d6038ad6d931f Mon Sep 17 00:00:00 2001 From: XorTroll Date: Sun, 21 Jun 2020 14:44:04 +0200 Subject: [PATCH] Support UserSystemClock field --- nx/source/runtime/diag.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nx/source/runtime/diag.c b/nx/source/runtime/diag.c index 111110d9..d24f2732 100644 --- a/nx/source/runtime/diag.c +++ b/nx/source/runtime/diag.c @@ -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;