Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
compose
legacystack
cpp_tools
Commits
0dbb7c49
Commit
0dbb7c49
authored
May 07, 2021
by
ESTERIE Pierre
Browse files
some more readmes
parent
46ce0d1b
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
0dbb7c49
...
...
@@ -78,5 +78,10 @@ And that's it !
## Documentation
[
cl_parser
](
cl_parser/README.md
)
[
colors
](
colors/README.md
)
[
timers
](
timers/README.md
)
[
parallel_manager
](
parallel_manager/README.md
)
:construction: Docs of the modules can be found
[
here
](
https://compose.gitlabpages.inria.fr/oldstack/cpp_tools/
)
(
under
construction)
colors/README.md
0 → 100644
View file @
0dbb7c49
# colors : simple colors for you terminal
`colors`
is a single header to put color in your terminal.
# Usage
```
cpp
#include <iostream>
#include <cpp_tools/colors/colorized.hpp>
...
std
::
cout
<<
cpp_tools
::
colors
::
blue
<<
"some blue"
<<
cpp_tools
::
colors
::
reset
<<
'\n'
;
...
```
# Available colors
`black`
`red`
`green`
`yellow`
`blue`
`magenta`
`cyan`
`white`
`on_black`
`on_red`
`on_green`
`on_yellow`
`on_blue`
`on_magenta`
`on_cyan`
`on_white`
`reset`
`bold`
`faint`
`italic`
`underline`
`underline_off`
`slow_blink`
`rapid_blink`
`blink_off`
`reverse`
`overlined`
parallel_manager/README.md
0 → 100644
View file @
0dbb7c49
# parallel_manager : a helper class for parallelism
:construction: under construction
timers/README.md
0 → 100644
View file @
0dbb7c49
# timers : a collection of helpful timers
:construction: New timers will be added !
# Simple timer example
```
cpp
#include <iostream>
#include <cpp_tools/timers/simple_timer.hpp>
...
auto
main
()
->
int
{
...
// default is millisecond
cpp_tools
::
timers
::
timer
time
{};
// or cpp_tools::timers::timer<std::chrono::microseconds> time{};
// for timings in milliseconds etc ...
time
.
tic
();
// some stuff to time...
// directly : std::cout << " time elapsed : " << time.tac_and_elapsed() << "ms\n";
// or :
time
.
tac
();
std
::
cout
<<
" time elapsed : "
<<
time
.
elapsed
()
<<
"ms
\n
"
;
...
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment