/wearlevel

wearlevel project that checks 1) how long OS has been running, 2) how many bytes read and written during uptime.

Primary LanguageC++

wearlevel

wearlevel project that checks 1) how long OS has been running, 2) how many bytes read and written during uptime.

Note: 1) Project created in Visual Studio Code
2) built using MinGW on Windows

Here is a helpful link to getting MinGW set up with VSCode: https://code.visualstudio.com/docs/languages/cpp
That link also contains links to where you can get MinGW.

Windows header file info: https://docs.microsoft.com/en-us/windows/win32/winprog/using-the-windows-headers

tasks.json contains the VSCode compiler options. Two very important ones I added :

  • -D_WIN32_WINNT=0x0600 // compiles toward newer platform enables support for 64 bit API calls (GetTickCount64())
  • -static // builds exe with statically linked libraries so you can deploy just .exe and it'll run on other people's systems.