Home
last modified time | relevance | path

Searched refs:timeMs (Results 1 – 8 of 8) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/platform/unix/
Dtime.cpp24 int64_t GetLocalOffsetFromOS(int64_t timeMs, bool isLocal) in GetLocalOffsetFromOS() argument
29 timeMs /= THOUSAND; in GetLocalOffsetFromOS()
30 time_t tv = timeMs; in GetLocalOffsetFromOS()
43 bool IsDst(int64_t timeMs) in IsDst() argument
45 timeMs /= THOUSAND; in IsDst()
46 time_t tv = timeMs; in IsDst()
/arkcompiler/ets_runtime/ecmascript/platform/windows/
Dtime.cpp24 int64_t GetLocalOffsetFromOS([[maybe_unused]] int64_t timeMs, bool isLocal) in GetLocalOffsetFromOS() argument
35 bool IsDst(int64_t timeMs) in IsDst() argument
37 timeMs /= THOUSAND; in IsDst()
38 time_t tv = timeMs; in IsDst()
/arkcompiler/ets_runtime/ecmascript/platform/
Dtime.h22 int64_t GetLocalOffsetFromOS(int64_t timeMs, bool isLocal);
23 bool IsDst(int64_t timeMs);
/arkcompiler/ets_runtime/ecmascript/
Djs_date.h68 static void TransferTimeToDate(int64_t timeMs, std::array<int64_t, DATE_LENGTH> *date);
105 int64_t GetLocalOffsetInMin(const JSThread *thread, int64_t timeMs, bool isLocal);
108 double LocalTime(double timeMs) const;
111 double UTCTime(double timeMs) const;
130 static CString ToDateString(double timeMs);
148 double GetDateValue(double timeMs, uint8_t code, bool isLocal) const;
162 static void GetDateValues(double timeMs, std::array<int64_t, DATE_LENGTH> *date, bool isLocal);
Djs_date.cpp34 void DateUtils::TransferTimeToDate(int64_t timeMs, std::array<int64_t, DATE_LENGTH> *date) in TransferTimeToDate() argument
36 …(*date)[HOUR] = Mod(timeMs, MS_PER_DAY); // ms from hour, minutes,… in TransferTimeToDate()
37 …(*date)[DAYS] = (timeMs - (*date)[HOUR]) / MS_PER_DAY; // days from year, month,… in TransferTimeToDate()
188 double JSDate::LocalTime(double timeMs) const in LocalTime()
190 return timeMs + GetLocalOffsetFromOS(timeMs, true); in LocalTime()
194 double JSDate::UTCTime(double timeMs) const in UTCTime()
196 return timeMs - GetLocalOffsetFromOS(timeMs, false); in UTCTime()
242 int64_t JSDate::GetLocalOffsetInMin(const JSThread *thread, int64_t timeMs, bool isLocal) in GetLocalOffsetInMin() argument
249 localOffset = static_cast<double>(GetLocalOffsetFromOS(timeMs, isLocal)); in GetLocalOffsetInMin()
634 double timeMs = this->GetTimeValue().GetDouble(); in GetThisDateValues() local
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Dmem_controller.cpp179 const BytesAndDuration &initial, const double timeMs) in CalculateAverageSpeed() argument
182 [timeMs](BytesAndDuration a, BytesAndDuration b) { in CalculateAverageSpeed()
183 if (timeMs != 0 && a.second >= timeMs) { in CalculateAverageSpeed()
211 double MemController::GetCurrentOldSpaceAllocationThroughputPerMS(double timeMs) const in GetCurrentOldSpaceAllocationThroughputPerMS()
216 MakeBytesAndDuration(allocatedSize, duration), timeMs); in GetCurrentOldSpaceAllocationThroughputPerMS()
Dmem_controller.h61 …double GetCurrentOldSpaceAllocationThroughputPerMS(double timeMs = THROUGHPUT_TIME_FRAME_MS) const;
141 const BytesAndDuration &initial, const double timeMs);
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/
DXTools.js62 export var timeMs = 0; variable
65 timeMs = t.getTime();