sprintf_duration

July 4, 2024 ยท View on GitHub

Shows how to use xtd::ustring::sprintf method.

Sources

src/sprintf_duration.cpp

CMakeLists.txt

Build and run

Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:

xtdc run

Output (with colors)

1.02:03:32.0240005
1.02:03:32.0240005
0.02:03:32.0240005
02:03
02:03:32:0240005
2:3:32:240005

Contents

  1. 1Sources
  2. 2Build and run