24ms average on WINDOWS is wild
This commit is contained in:
parent
7e7678f5f0
commit
0027fa6520
22 changed files with 627 additions and 529 deletions
|
@ -34,7 +34,7 @@ constexpr u64 GIB = 1'073'741'824;
|
|||
*
|
||||
* @code{.cpp}
|
||||
* #include <format>
|
||||
* #include "system_data.h" // Assuming BytesToGiB is defined here
|
||||
* #include "system_data.h"
|
||||
*
|
||||
* i32 main() {
|
||||
* BytesToGiB data_size{2'147'483'648}; // 2 GiB
|
||||
|
@ -66,18 +66,18 @@ namespace os {
|
|||
* in order to display it at all at once during runtime.
|
||||
*/
|
||||
struct SystemData {
|
||||
Result<String, DracError> date; ///< Current date (e.g., "April 26th").
|
||||
Result<String, DracError> host; ///< Host/product family (e.g., "MacBook Air").
|
||||
Result<String, DracError> kernelVersion; ///< OS kernel version (e.g., "6.14.4").
|
||||
Result<String, DracError> osVersion; ///< OS pretty name (e.g., "Ubuntu 24.04.2 LTS").
|
||||
Result<u64, DracError> memInfo; ///< Total physical RAM in bytes.
|
||||
Result<String, DracError> desktopEnv; ///< Desktop environment (e.g., "KDE").
|
||||
Result<String, DracError> windowMgr; ///< Window manager (e.g., "KWin").
|
||||
Result<DiskSpace, DracError> diskUsage; ///< Used/Total disk space for root filesystem.
|
||||
Result<String, DracError> shell; ///< Name of the current user shell (e.g., "zsh").
|
||||
Result<u64, DracError> packageCount; ///< Total number of packages installed.
|
||||
Result<MediaInfo, DracError> nowPlaying; ///< Result of fetching media info.
|
||||
Result<weather::Output, DracError> weather; ///< Result of fetching weather info.
|
||||
Result<String> date; ///< Current date (e.g., "April 26th").
|
||||
Result<String> host; ///< Host/product family (e.g., "MacBook Air").
|
||||
Result<String> kernelVersion; ///< OS kernel version (e.g., "6.14.4").
|
||||
Result<String> osVersion; ///< OS pretty name (e.g., "Ubuntu 24.04.2 LTS").
|
||||
Result<u64> memInfo; ///< Total physical RAM in bytes.
|
||||
Result<String> desktopEnv; ///< Desktop environment (e.g., "KDE").
|
||||
Result<String> windowMgr; ///< Window manager (e.g., "KWin").
|
||||
Result<DiskSpace> diskUsage; ///< Used/Total disk space for root filesystem.
|
||||
Result<String> shell; ///< Name of the current user shell (e.g., "zsh").
|
||||
Result<u64> packageCount; ///< Total number of packages installed.
|
||||
Result<MediaInfo> nowPlaying; ///< Result of fetching media info.
|
||||
Result<weather::Output> weather; ///< Result of fetching weather info.
|
||||
|
||||
/**
|
||||
* @brief Constructs a SystemData object and initializes its members.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue