Fork自 Hypo / DeepMosaics
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
#ifndef UTIL_H #define UTIL_H #include <iostream> #include <list> 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 #endif