Spaces:
Running
Running
File size: 440 Bytes
9d0b4d9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
#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 |