mirror of
https://github.com/rui314/mold.git
synced 2024-09-22 10:27:48 +03:00
temporary
This commit is contained in:
parent
3cb7b5b0d1
commit
4f2de27b7a
16
main.cc
16
main.cc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user