Spaces:
Running
Running
Download cpp/utils/include/util.hpp from Riz0030/DeepMosaics: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/spaces/Riz0030/DeepMosaics/resolve/main/cpp/utils/include/util.hpp
- Command line
-
hf download hf://spaces/Riz0030/DeepMosaics/cpp/utils/include/util.hpp
-
curl -L -o util.hpp https://huggingface.co/spaces/Riz0030/DeepMosaics/resolve/main/cpp/utils/include/util.hpp
440 Bytes
| namespace util { | |
| class Timer { | |
| private: | |
| clock_t tstart, tend; | |
| public: | |
| void start(); | |
| void end(); | |
| }; | |
| // std::string path = util::current_path(); | |
| std::string current_path(); | |
| // std::string out = util::pathjoin({path, "b", "c"}); | |
| std::string pathjoin(const std::list<std::string>& strs); | |
| bool isfile(const std::string& name); | |
| } // namespace util | |