/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_date_test.cpp | 86 double ms = ecmascript::JSDate::TimeClip(ecmascript::JSDate::MakeDate(day, time)); in HWTEST_F_L0() local 87 EXPECT_EQ(ms, -62167305600000.0); in HWTEST_F_L0() 94 JSTaggedValue ms = ecmascript::JSDate::GetTimeFromString(str.c_str(), str.length()); in HWTEST_F_L0() local 95 EXPECT_EQ(ms.GetDouble(), 1605788298132.0); in HWTEST_F_L0() 98 ms = ecmascript::JSDate::GetTimeFromString(str.c_str(), str.length()); in HWTEST_F_L0() 99 EXPECT_EQ(ms.GetDouble(), -2808633901000.0); in HWTEST_F_L0() 102 ms = ecmascript::JSDate::GetTimeFromString(str.c_str(), str.length()); in HWTEST_F_L0() 103 EXPECT_EQ(ms.GetDouble(), 1605744000000.0); in HWTEST_F_L0() 106 ms = ecmascript::JSDate::GetTimeFromString(str.c_str(), str.length()); in HWTEST_F_L0() 107 EXPECT_EQ(ms.GetDouble(), 1604188800000.0); in HWTEST_F_L0() [all …]
|
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
D | Date.ets | 21 // and defaults to 20µs in Firefox 59; in 60 it will be 2ms. 256 * @param ms 260 function ecmaMakeTime(hr: long, min: long, sec: long, ms: long): long { 261 return hr * msPerHour + min * msPerMinute + sec * msPerSecond + ms; 273 * @param ms 277 function ecmaMakeTime(hr: double, min: double, sec: double, ms: double): long { 281 let mi = trunc(ms) as long; 400 private ms: long; 453 this.ms = Date.now() as long; 467 this.ms = d.valueOf() as long; [all …]
|
/arkcompiler/ets_runtime/test/jsperftest/ |
D | README.md | 114 …2. 报告表格表头输出"用例名称"、"场景"、"执行状态"、"ark用例执行耗时(ms)"、"昨日ark用例执行耗时(ms)"、"是否劣化"、"v 8(ms)"、"v 8 --jitless(ms… 139 … | 场景 | 执行状态 | ark用例执行耗时(ms) | 是否劣化 | v 8(ms) | v 8 --jitless(ms) … 160 - G列 “v 8(ms)”是有基准数据每月1、11、21日会生成v 8执行时间的基准数据,其他时间都不进行v 8执行用例操作,直接获取前边最近的基准数据 161 - H列 “v 8 --jitless(ms)”是有基准数据每月1、11、21日会生成v 8 --jitless执行时间的基准数据,其他时间都不进行v 8 --jitless执行用例操作,直接获取前…
|
/arkcompiler/ets_runtime/ecmascript/platform/common/ |
D | mutex.cpp | 166 struct timespec ConvertTime(uint64_t ms, uint64_t ns, bool is_absolute) in ConvertTime() argument 175 time_t seconds = ms / MILLISECONDS_PER_SEC; in ConvertTime() 176 time_t nanoseconds = (ms % MILLISECONDS_PER_SEC) * NANOSECONDS_PER_MILLISEC + ns; in ConvertTime() 186 bool ConditionVariable::TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns, bool is_absolute) in TimedWait() argument 188 struct timespec abs_time = ConvertTime(ms, ns, is_absolute); in TimedWait()
|
/arkcompiler/runtime_core/libpandabase/os/ |
D | mutex.cpp | 178 struct timespec ConvertTime(uint64_t ms, uint64_t ns, bool is_absolute) in ConvertTime() argument 187 time_t seconds = ms / MILLISECONDS_PER_SEC; in ConvertTime() 188 time_t nanoseconds = (ms % MILLISECONDS_PER_SEC) * NANOSECONDS_PER_MILLISEC + ns; in ConvertTime() 198 bool ConditionVariable::TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns, bool is_absolute /* = fal… in TimedWait() argument 200 struct timespec abs_time = ConvertTime(ms, ns, is_absolute); in TimedWait()
|
/arkcompiler/runtime_core/static_core/libpandabase/os/ |
D | mutex.cpp | 178 struct timespec ConvertTime(uint64_t ms, uint64_t ns, bool is_absolute) in ConvertTime() argument 187 time_t seconds = ms / MILLISECONDS_PER_SEC; in ConvertTime() 188 time_t nanoseconds = (ms % MILLISECONDS_PER_SEC) * NANOSECONDS_PER_MILLISEC + ns; in ConvertTime() 198 bool ConditionVariable::TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns, bool is_absolute /* = fal… in TimedWait() argument 200 struct timespec abs_time = ConvertTime(ms, ns, is_absolute); in TimedWait()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/ |
D | ws_logger.cpp | 53 auto &ms = message.GetStream(); in write() local 56 ms << websocketpp::log::alevel::channel_name(channel) << ": "; in write() 59 ms << string; in write()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
D | escompat_Atomics.cpp | 151 …aredMemoryTimedWaitI32(EtsSharedMemory *mem, int32_t byteOffset, int32_t expectedValue, int64_t ms) in SharedMemoryTimedWaitI32() argument 153 ASSERT(ms >= 0); in SharedMemoryTimedWaitI32() 154 auto uMs = static_cast<uint64_t>(ms); in SharedMemoryTimedWaitI32() 159 …aredMemoryTimedWaitI64(EtsSharedMemory *mem, int32_t byteOffset, int64_t expectedValue, int64_t ms) in SharedMemoryTimedWaitI64() argument 165 ASSERT(ms >= 0); in SharedMemoryTimedWaitI64() 166 auto uMs = static_cast<uint64_t>(ms); in SharedMemoryTimedWaitI64()
|
D | escompat_Date.cpp | 56 extern "C" EtsString *EscompatDateGetLocaleString(EtsString *format, EtsString *locale, int64_t ms,… in EscompatDateGetLocaleString() argument 61 std::time_t seconds = ms / MS_IN_SECOND; in EscompatDateGetLocaleString()
|
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
D | thread.cpp | 80 void NativeSleep(unsigned int ms) in NativeSleep() argument 82 std::this_thread::sleep_for(std::chrono::milliseconds(ms)); in NativeSleep()
|
/arkcompiler/runtime_core/platforms/windows/libpandabase/ |
D | thread.cpp | 80 void NativeSleep(unsigned int ms) in NativeSleep() argument 82 std::this_thread::sleep_for(std::chrono::milliseconds(ms)); in NativeSleep()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
D | g1gc_fullgc_test.cpp | 145 MemStatsType *ms {}; member in panda::mem::test::G1GCFullGCTest 295 ms = vm->GetMemStats(); in PrepareTest() 348 size_t initialHeap = ms->GetFootprintHeap(); in TEST_F() 364 ASSERT_EQ(initialHeap, ms->GetFootprintHeap()); in TEST_F() 388 ASSERT_EQ(initialHeap, ms->GetFootprintHeap()); in TEST_F() 394 ASSERT_EQ(initialHeap, ms->GetFootprintHeap()); in TEST_F() 423 size_t initialHeap = ms->GetFootprintHeap(); in TEST_F() 456 ASSERT_EQ(initialHeap, ms->GetFootprintHeap()); in TEST_F() 485 size_t initialHeap = ms->GetFootprintHeap(); in TEST_F() 517 ASSERT_EQ(initialHeap, ms->GetFootprintHeap()); in TEST_F()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
D | gc_queue.cpp | 45 uint64_t ms = delta / NANOSECONDS_PER_MILLISEC; in GetTask() local 48 condVar_.TimedWait(&lock_, ms, ns); in GetTask()
|
/arkcompiler/runtime_core/platforms/unix/libpandabase/ |
D | thread.cpp | 93 void NativeSleep(unsigned int ms) in NativeSleep() argument 95 std::this_thread::sleep_for(std::chrono::milliseconds(ms)); in NativeSleep()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_date.cpp | 133 double JSDate::MakeTime(double hour, double min, double sec, double ms) in MakeTime() argument 135 if (std::isfinite(hour) && std::isfinite(min) && std::isfinite(sec) && std::isfinite(ms)) { in MakeTime() 139 double msInteger = NumberHelper::TruncateDouble(ms); in MakeTime() 264 int ms = 0; in LocalParseStringToMs() local 311 double time = MakeTime(hours, minutes, seconds, ms); in LocalParseStringToMs() 333 int ms = 0; in UtcParseStringToMs() local 379 double time = MakeTime(hours, minutes, seconds, ms); in UtcParseStringToMs() 401 int ms = 0; in IsoParseStringToMs() local 432 GetNumFromString(str, len, &index, &ms); in IsoParseStringToMs() 439 GetNumFromString(str, len, &index, &ms); in IsoParseStringToMs() [all …]
|
/arkcompiler/runtime_core/platforms/unix/libpandabase/futex/ |
D | mutex.cpp | 336 struct timespec ConvertTime(uint64_t ms, uint64_t ns) in ConvertTime() argument 342 auto seconds = static_cast<time_t>(ms / MILLISECONDS_PER_SEC); in ConvertTime() 343 …auto nanoseconds = static_cast<time_t>((ms % MILLISECONDS_PER_SEC) * NANOSECONDS_PER_MILLISEC + ns… in ConvertTime() 353 bool ConditionVariable::TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns, bool is_absolute) in TimedWait() argument 373 struct timespec time = ConvertTime(ms, ns); in TimedWait()
|
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/ |
D | thread.cpp | 94 void NativeSleep(unsigned int ms) in NativeSleep() argument 96 std::this_thread::sleep_for(std::chrono::milliseconds(ms)); in NativeSleep()
|
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/futex/ |
D | fmutex.cpp | 363 struct timespec ConvertTime(uint64_t ms, uint64_t ns) in ConvertTime() argument 366 auto seconds = static_cast<time_t>(ms / MILLISECONDS_PER_SEC); in ConvertTime() 367 …auto nanoseconds = static_cast<time_t>((ms % MILLISECONDS_PER_SEC) * NANOSECONDS_PER_MILLISEC + ns… in ConvertTime() 423 bool TimedWait(struct CondVar *const cond, struct fmutex *const m, uint64_t ms, uint64_t ns, bool i… in TimedWait() argument 457 struct timespec time = ConvertTime(ms, ns); in TimedWait()
|
D | mutex.h | 290 …PANDA_PUBLIC_API bool TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns = 0, bool isAbsolute = fals… 292 return futex::TimedWait(&cond_, &mutex->mutex_, ms, ns, isAbsolute);
|
/arkcompiler/ets_frontend/arkguard/ |
D | tsconfig.base.json | 2 /* Visit https://aka.ms/tsconfig.json to read more about this file */
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | gc_stats.h | 217 float PrintTimeMilliseconds(uint64_t ms) in PrintTimeMilliseconds() argument 219 return (float)ms / THOUSAND; in PrintTimeMilliseconds()
|
/arkcompiler/ets_runtime/ecmascript/platform/ |
D | mutex.h | 94 bool TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns = 0, bool is_absolute = false);
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/regression/ |
D | invalid_bytecode.ets | 37 console.println("Benchmark result: "+ name + " " + (Date.now() - startTime) + ' ms')
|
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
D | lib_ark_builtins.d.ts | 204 …nth: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date; 246 setHours(hours: number, min?: number, sec?: number, ms?: number): number; 248 setMilliseconds(ms: number): number; 250 setMinutes(min: number, sec?: number, ms?: number): number; 254 setSeconds(sec: number, ms?: number): number; 262 setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number; 264 setUTCMilliseconds(ms: number): number; 266 setUTCMinutes(min: number, sec?: number, ms?: number): number; 270 setUTCSeconds(sec: number, ms?: number): number; 294 …h: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
|
/arkcompiler/runtime_core/compiler/docs/ |
D | interface_inline_cache.md | 106 3. Application startup: 10ms - 100ms. The value depends on the number of interfaces call.
|