/external/ms-tpm-20-ref/Samples/Nucleo-TPM/Shared/Platform/src/ |
D | Clock.c | 116 clock_t timeDiff; in _plat__TimerRead() 120 timeDiff = s_realTimePrevious; in _plat__TimerRead() 129 if(timeDiff >= s_realTimePrevious) in _plat__TimerRead() 131 s_realTimePrevious = timeDiff; in _plat__TimerRead() 135 timeDiff = s_realTimePrevious - timeDiff; in _plat__TimerRead() 138 adjusted = (((uint64_t)timeDiff * (THOUSAND * CLOCK_NOMINAL)) in _plat__TimerRead() 154 s_realTimePrevious += timeDiff; in _plat__TimerRead()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/ |
D | TimedValueQueue.java | 105 long timeDiff = timestamp - timestamps[first]; in poll() local 106 if (timeDiff < 0 && (onlyOlder || -timeDiff >= previousTimeDiff)) { in poll() 109 previousTimeDiff = timeDiff; in poll()
|
/external/libevent/test/ |
D | test-changelist.c | 114 struct timeval timeEnd, timeDiff; in get_cpu_usage() local 129 evutil_timersub(&timeEnd, &timer->timeBegin, &timeDiff); in get_cpu_usage() 130 secondsPassed = timeDiff.tv_sec + (timeDiff.tv_usec / 1.0e6); in get_cpu_usage()
|
/external/angle/src/libANGLE/ |
D | Overlay.cpp | 88 double timeDiff = currentTime - mLastPerSecondUpdate; in onSwap() local 89 if (timeDiff >= 1.0) in onSwap() 97 perSecond->lastPerSecondCount = static_cast<size_t>(perSecond->count / timeDiff); in onSwap()
|
/external/ms-tpm-20-ref/TPMCmd/Platform/src/ |
D | Clock.c | 140 clock64_t timeDiff; in _plat__TimerRead() 173 timeDiff = timeNow - s_realTimePrevious; in _plat__TimerRead() 176 adjustedTimeDiff = (timeDiff * CLOCK_NOMINAL) / ((uint64_t)s_adjustRate); in _plat__TimerRead()
|
/external/ms-tpm-20-ref/Samples/ARM32-FirmwareTPM/optee_ta/fTPM/platform/ |
D | Clock.c | 160 clock64_t timeDiff; in _plat__TimerRead() 193 timeDiff = timeNow - s_realTimePrevious; in _plat__TimerRead() 196 adjustedTimeDiff = (timeDiff * CLOCK_NOMINAL) / ((uint64_t)s_adjustRate); in _plat__TimerRead()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | TimeZoneFormatTest.java | 477 long timeDiff = restime - testTimes[testidx]; in TestTimeRoundTrip() local 479 (timeDiff/60000)*60000 == 0 : timeDiff == 0; in TestTimeRoundTrip() 490 .append(", diff=").append(timeDiff); in TestTimeRoundTrip()
|
D | GlobalizationPreferencesTest.java | 1586 long timeDiff = System.currentTimeMillis() - cal.getTimeInMillis(); in TestJB5380() local 1587 if (Math.abs(timeDiff) > 1000) { in TestJB5380() 1589 … errln("FAIL: The Calendar was not initialized by current time - difference:" + timeDiff); in TestJB5380()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | TimeZoneFormatTest.java | 474 long timeDiff = restime - testTimes[testidx]; in TestTimeRoundTrip() local 476 (timeDiff/60000)*60000 == 0 : timeDiff == 0; in TestTimeRoundTrip() 487 .append(", diff=").append(timeDiff); in TestTimeRoundTrip()
|
/external/icu/icu4c/source/test/intltest/ |
D | tzfmttst.cpp | 677 int32_t timeDiff = (int32_t)(parsedDate - testTimes[testidx]); in RunTimeRoundTripTests() local 679 (timeDiff/60000)*60000 == 0 : timeDiff == 0; in RunTimeRoundTripTests()
|
/external/deqp/modules/glshared/ |
D | glsLongStressCase.cpp | 1487 const deUint64 timeDiff = time - m_lastLogTime; in iterate() local 1490 if (timeDiff >= loggingIntervalSeconds || m_currentIteration == m_numIterations-1) in iterate() 1495 << TestLog::Message << "Time since last log entry: " << timeDiff << "s" << TestLog::EndMessage in iterate() 1497 …"Average frame time since last log entry: " << de::floatToString((float)timeDiff / (float)iterDiff… in iterate()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/ |
D | GlobalizationPreferencesTest.java | 1583 long timeDiff = System.currentTimeMillis() - cal.getTimeInMillis(); in TestJB5380() local 1584 if (Math.abs(timeDiff) > 1000) { in TestJB5380() 1586 … errln("FAIL: The Calendar was not initialized by current time - difference:" + timeDiff); in TestJB5380()
|
/external/sqlite/dist/orig/ |
D | shell.c | 285 static double timeDiff(struct timeval *pStart, struct timeval *pEnd){ in timeDiff() function 300 timeDiff(&sBegin.ru_utime, &sEnd.ru_utime), in endTimer() 301 timeDiff(&sBegin.ru_stime, &sEnd.ru_stime)); in endTimer() 363 static double timeDiff(FILETIME *pStart, FILETIME *pEnd){ in timeDiff() function 379 timeDiff(&ftUserBegin, &ftUserEnd), in endTimer() 380 timeDiff(&ftKernelBegin, &ftKernelEnd)); in endTimer()
|
/external/sqlite/dist/ |
D | shell.c | 290 static double timeDiff(struct timeval *pStart, struct timeval *pEnd){ in timeDiff() function 305 timeDiff(&sBegin.ru_utime, &sEnd.ru_utime), in endTimer() 306 timeDiff(&sBegin.ru_stime, &sEnd.ru_stime)); in endTimer() 368 static double timeDiff(FILETIME *pStart, FILETIME *pEnd){ in timeDiff() function 384 timeDiff(&ftUserBegin, &ftUserEnd), in endTimer() 385 timeDiff(&ftKernelBegin, &ftKernelEnd)); in endTimer()
|