Skip to content

Commit

Permalink
Updated to lastest version of mbgl-native
Browse files Browse the repository at this point in the history
  • Loading branch information
gdey committed Feb 13, 2019
1 parent 1a822a1 commit 2256a6a
Show file tree
Hide file tree
Showing 94 changed files with 12,703 additions and 1,014 deletions.
16 changes: 16 additions & 0 deletions mbgl/c/include/auto_cpu_timer.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#pragma once

#include <chrono>
#include <iostream>

struct auto_cpu_timer {
std::chrono::time_point<std::chrono::high_resolution_clock> start;
auto_cpu_timer() : start(std::chrono::high_resolution_clock::now()) {
}
~auto_cpu_timer() {
auto end = std::chrono::high_resolution_clock::now();
std::chrono::microseconds elapsed =
std::chrono::duration_cast<std::chrono::microseconds>(end - start);
std::cerr << elapsed.count() << "us" << std::endl;
}
};
Loading

0 comments on commit 2256a6a

Please sign in to comment.