1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-22 10:27:48 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-25 09:34:57 +09:00
parent 3cb7b5b0d1
commit 4f2de27b7a

16
main.cc
View File

@ -183,6 +183,22 @@ static void unlink_async(tbb::task_group &tg, StringRef path) {
tg.run([=]() { close(fd); });
}
class Timer {
public:
Timer(StringRef name) : timer(name, name) {
timer.startTimer();
}
Timer(StringRef name, llvm::TimerGroup &tg) : timer(name, name, tg) {
timer.startTimer();
}
~Timer() { timer.stopTimer(); }
private:
llvm::Timer timer;
};
int main(int argc, char **argv) {
// tbb::task_scheduler_init init(1);
tbb::task_group tg;