| 941 | } |
| 942 | |
| 943 | void Runtime::PerformanceNowCallback( |
| 944 | const v8::FunctionCallbackInfo<v8::Value>& args) { |
| 945 | auto isolate = args.GetIsolate(); |
| 946 | auto runtime = Runtime::GetRuntime(isolate); |
| 947 | // Difference in seconds * 1000 for ms |
| 948 | double ms = |
| 949 | (platform->MonotonicallyIncreasingTime() - runtime->m_startTime) * 1000.0; |
| 950 | args.GetReturnValue().Set(ms); |
| 951 | } |
| 952 | |
| 953 | void Runtime::DestroyRuntime() { |
| 954 | s_id2RuntimeCache.erase(m_id); |
nothing calls this directly
no test coverage detected