Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちは、起動操作にかかる時間を計算しようとしています。kernel/main.c の switch_to_user() 関数呼び出しの直前に get_uptime() を配置しました
printf("Uptime= %d \n",get_uptime());
ただし、ビルドして再起動すると結果が 0 と表示されます。不足している点はありますか?