Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
chakrashim: Move unordered_set to chakrashim
Browse files Browse the repository at this point in the history
* Moved `unordered_set` to `v8-tracing.h` to match v8
* Fixed `int64`->`double` implicit cast in `v8-platform.h`

PR-URL: #466
Reviewed-By: Taylor Woll <tawoll@ntdev.microsoft.com>
Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
  • Loading branch information
kfarnung committed Feb 16, 2018
1 parent bf31cff commit 3aff817
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions deps/chakrashim/include/libplatform/v8-tracing.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

#include <fstream>
#include <memory>
#include <unordered_set>
#include <vector>

#include "v8-platform.h"

namespace v8 {
Expand Down
5 changes: 3 additions & 2 deletions deps/chakrashim/include/v8-platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,9 @@ class Platform {

protected:
static double SystemClockTimeMillis() {
return std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::system_clock::now().time_since_epoch()).count();
return std::chrono::duration_cast<
std::chrono::duration<double, std::milli>>(
std::chrono::system_clock::now().time_since_epoch()).count();
}
};

Expand Down

0 comments on commit 3aff817

Please sign in to comment.