|
nnlib
GPU-accelerated, C/C++ neural network library.
|
Header file declaring methods to construct useful string messages. More...
#include <string>Go to the source code of this file.
Functions | |
| std::string | constructProgressBar (size_t currentStep, size_t maxSteps) |
| Construct a string message representing a progress bar. More... | |
| std::string | constructPercentage (size_t currentStep, size_t maxSteps) |
| Construct a string message about progress in percentage form. More... | |
| std::string | constructTime (size_t milliseconds) |
| Construct a string message displaying current time spent. More... | |
Header file declaring methods to construct useful string messages.
| std::string constructPercentage | ( | size_t | currentStep, |
| size_t | maxSteps | ||
| ) |
Construct a string message about progress in percentage form.
The info is displayed in the following format:
| currentStep | The current progress to display. |
| maxSteps | The maximum progress that can be achieved. |
| std::string constructProgressBar | ( | size_t | currentStep, |
| size_t | maxSteps | ||
| ) |
Construct a string message representing a progress bar.
The progress bar is displayed in the following format:
| currentStep | The current progress to display. |
| maxSteps | The maximum progress that can be achieved. |
| std::string constructTime | ( | size_t | milliseconds | ) |
Construct a string message displaying current time spent.
The time is displayed in the following format:
| milliseconds | The amount of time to display in milliseconds. |