Switch to the Python version you want to use:
| #include <chrono> | |
| auto start = std::chrono::high_resolution_clock::now(); | |
| // Code to time | |
| auto finish = std::chrono::high_resolution_clock::now(); | |
| double duration = std::chrono::duration_cast<std::chrono::milliseconds>(finish - start).count(); |
| // usage | |
| std::vector<std::string> exts{".jpg", ".png"}; | |
| std::vector<std::string> files = getFilesInDir("/path/to/root/directory/", exts, true); | |
| // -------------------------------------------------------- | |
| #define BOOST_FILESYSTEM_NO_DEPRECATED | |
| #include <boost/filesystem.hpp> |
| #!/bin/bash | |
| # This script assumes that you have all dependencies on Ubuntu 14.04 | |
| # It will takes about 10 or more minites due to repo cloning. | |
| # | |
| # ./harmony ----- iotjs | |
| # | | |
| # ---- nuttx | |
| mkdir harmony |