/third_party/pulseaudio/src/tests/ |
H A D | cpulimit-test.c | 23 #include <time.h> 46 time(&now); in func() 66 time(&start); in START_TEST() 77 time(&now); in START_TEST()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | ztrans.cpp | 29 ztrans_open(UDate time, const void* from, const void* to){ in ztrans_open() argument 30 return (ZTrans*) new TimeZoneTransition(time,*(TimeZoneRule*)from,*(TimeZoneRule*)to); in ztrans_open() 59 ztrans_setTime(ZTrans* trans, UDate time) { in ztrans_setTime() argument 60 return ((TimeZoneTransition*)trans)->TimeZoneTransition::setTime(time); in ztrans_setTime()
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/ |
H A D | OboeStreamCallbackProxy.cpp | 46 struct timespec time; in getNanoseconds() local 47 int result = clock_gettime(clockId, &time); in getNanoseconds() 51 return (time.tv_sec * 1e9) + time.tv_nsec; in getNanoseconds()
|
/third_party/vk-gl-cts/framework/delibs/deutil/ |
H A D | deClock.c | 26 #include <time.h> 32 # include <time.h> 34 # include <sys/time.h> 82 return (deUint64)time(DE_NULL); in deGetTime()
|
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-rv8803.c | 369 alrm->time.tm_sec = 0; in rv8803_get_alarm() 370 alrm->time.tm_min = bcd2bin(alarmvals[0]); in rv8803_get_alarm() 371 alrm->time.tm_hour = bcd2bin(alarmvals[1]); in rv8803_get_alarm() 372 alrm->time.tm_mday = bcd2bin(alarmvals[2]); in rv8803_get_alarm() 377 if ((unsigned int)alrm->time.tm_mday > 31 || in rv8803_get_alarm() 378 (unsigned int)alrm->time.tm_hour >= 24 || in rv8803_get_alarm() 379 (unsigned int)alrm->time.tm_min >= 60) in rv8803_get_alarm() 398 if (alrm->time.tm_sec) { in rv8803_set_alarm() 399 time64_t alarm_time = rtc_tm_to_time64(&alrm->time); in rv8803_set_alarm() 401 alarm_time += 60 - alrm->time in rv8803_set_alarm() [all...] |
/kernel/linux/linux-5.10/drivers/macintosh/ |
H A D | smu.c | 12 * - blocking version of time functions 365 struct rtc_time *time) in smu_fill_set_rtc_cmd() 370 cmd_buf->data[1] = hex2bcd(time->tm_sec); in smu_fill_set_rtc_cmd() 371 cmd_buf->data[2] = hex2bcd(time->tm_min); in smu_fill_set_rtc_cmd() 372 cmd_buf->data[3] = hex2bcd(time->tm_hour); in smu_fill_set_rtc_cmd() 373 cmd_buf->data[4] = time->tm_wday; in smu_fill_set_rtc_cmd() 374 cmd_buf->data[5] = hex2bcd(time->tm_mday); in smu_fill_set_rtc_cmd() 375 cmd_buf->data[6] = hex2bcd(time->tm_mon) + 1; in smu_fill_set_rtc_cmd() 376 cmd_buf->data[7] = hex2bcd(time->tm_year - 100); in smu_fill_set_rtc_cmd() 380 int smu_get_rtc_time(struct rtc_time *time, in argument 364 smu_fill_set_rtc_cmd(struct smu_cmd_buf *cmd_buf, struct rtc_time *time) smu_fill_set_rtc_cmd() argument 407 smu_set_rtc_time(struct rtc_time *time, int spinwait) smu_set_rtc_time() argument [all...] |
/kernel/linux/linux-6.6/drivers/macintosh/ |
H A D | smu.c | 12 * - blocking version of time functions 366 struct rtc_time *time) in smu_fill_set_rtc_cmd() 371 cmd_buf->data[1] = hex2bcd(time->tm_sec); in smu_fill_set_rtc_cmd() 372 cmd_buf->data[2] = hex2bcd(time->tm_min); in smu_fill_set_rtc_cmd() 373 cmd_buf->data[3] = hex2bcd(time->tm_hour); in smu_fill_set_rtc_cmd() 374 cmd_buf->data[4] = time->tm_wday; in smu_fill_set_rtc_cmd() 375 cmd_buf->data[5] = hex2bcd(time->tm_mday); in smu_fill_set_rtc_cmd() 376 cmd_buf->data[6] = hex2bcd(time->tm_mon) + 1; in smu_fill_set_rtc_cmd() 377 cmd_buf->data[7] = hex2bcd(time->tm_year - 100); in smu_fill_set_rtc_cmd() 381 int smu_get_rtc_time(struct rtc_time *time, in argument 365 smu_fill_set_rtc_cmd(struct smu_cmd_buf *cmd_buf, struct rtc_time *time) smu_fill_set_rtc_cmd() argument 408 smu_set_rtc_time(struct rtc_time *time, int spinwait) smu_set_rtc_time() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
H A D | priv.h | 14 void (*time)(struct nvkm_timer *, u64 time); member 15 void (*alarm_init)(struct nvkm_timer *, u32 time);
|
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | time.h | 3 * time.h - NTFS time conversion functions. Part of the Linux-NTFS project. 11 #include <linux/time.h> /* For current_kernel_time(). */ 19 * utc2ntfs - convert Linux UTC time to NTFS time 20 * @ts: Linux UTC time to convert to NTFS time 22 * Convert the Linux UTC time @ts to its corresponding NTFS time and return 25 * Linux stores time i 74 ntfs2utc(const sle64 time) ntfs2utc() argument [all...] |
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | time.h | 3 * time.h - NTFS time conversion functions. Part of the Linux-NTFS project. 11 #include <linux/time.h> /* For current_kernel_time(). */ 19 * utc2ntfs - convert Linux UTC time to NTFS time 20 * @ts: Linux UTC time to convert to NTFS time 22 * Convert the Linux UTC time @ts to its corresponding NTFS time and return 25 * Linux stores time i 74 ntfs2utc(const sle64 time) ntfs2utc() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
H A D | priv.h | 14 void (*time)(struct nvkm_timer *, u64 time); member 15 void (*alarm_init)(struct nvkm_timer *, u32 time);
|
/kernel/liteos_a/testsuites/unittest/libc/time/timer/smoke/ |
H A D | timer_test_tzset_002.cpp | 33 #include <time.h> 34 #include <sys/time.h> 50 ret = time(&td); in testcase() 51 TEST_PRINT("[INFO]%s:%d,%s,Current time = %s\n", __FILE__, __LINE__, __func__, asctime(localtime(&td))); in testcase()
|
H A D | timer_test_tzset_001.cpp | 33 #include <time.h> 34 #include <sys/time.h> 50 ret = time(&td); in testcase() 51 TEST_PRINT("[INFO]%s:%d,%s,Current time = %s\n", __FILE__, __LINE__, __func__, asctime(localtime(&td))); in testcase()
|
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/ |
H A D | time_tzset_test.cpp | 3 #include <time.h> 13 * @tc.desc: Verify the behavior of the tzset() function by setting the time zone using the "TZ" environment variable, 14 * calling tzset() to apply the changes, obtaining local time representations, and comparing the results to 22 std::time_t t1 = std::time(nullptr); in HWTEST_F() 28 std::time_t t2 = std::time(nullptr); in HWTEST_F()
|
/third_party/rust/crates/bindgen/bindgen/ |
H A D | time.rs | 2 use std::time::{Duration, Instant}; 30 /// Returns the time elapsed since the timer's creation 38 let time = (elapsed.as_secs() as f64) * 1e3 + in print_elapsed() 42 writeln!(stderr.lock(), " time: {:>9.3} ms.\t{}", time, self.name) in print_elapsed()
|
/third_party/python/Lib/test/ |
H A D | reperf.py | 2 import time namespace 12 t0 = time.perf_counter() 18 t1 = time.perf_counter()
|
/third_party/skia/third_party/externals/swiftshader/tests/regres/shell/ |
H A D | shell.go | 20 "time" 33 func Shell(timeout time.Duration, exe, wd string, args ...string) error { 40 func Env(timeout time.Duration, exe, wd string, env []string, args ...string) error { 48 // permitted time. 51 timeout time.Duration
|
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | task-analyzer.py | 93 "--time-limit", 96 "print tasks only in time[s] window e.g" 97 " --time-limit 123.111:789.222(print all between 123.111 and 789.222)" 98 " --time-limit 123: (print all from 123)" 99 " --time-limit :456 (print all until incl. 456)", 233 The elapsed time between two occurrences of the same task is being tracked with the 236 The first half of the name signals the first time point of the 543 def schedule_in_at(self, time): 544 """set the time where the task was scheduled in""" 545 self._time_in = time [all...] |
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | cpufreq_stats.c | 31 unsigned long long time) in cpufreq_stats_update() 35 stats->time_in_state[stats->last_index] += cur_time - time; in cpufreq_stats_update() 48 /* Adjust for the time elapsed since reset was requested */ in cpufreq_stats_reset_table() 73 unsigned long long time; in show_time_in_state() local 85 time = get_jiffies_64() - READ_ONCE(stats->reset_time); in show_time_in_state() 87 time = 0; in show_time_in_state() 90 time = stats->time_in_state[i]; in show_time_in_state() 92 time += get_jiffies_64() - stats->last_time; in show_time_in_state() 96 jiffies_64_to_clock_t(time)); in show_time_in_state() 30 cpufreq_stats_update(struct cpufreq_stats *stats, unsigned long long time) cpufreq_stats_update() argument
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_usb_core.c | 124 u64 time; in mt76x02u_start_pre_tbtt_timer() local 136 time = (tbtt - PRE_TBTT_USEC) * 1000ull; in mt76x02u_start_pre_tbtt_timer() 137 hrtimer_start(&dev->pre_tbtt_timer, time, HRTIMER_MODE_REL); in mt76x02u_start_pre_tbtt_timer() 143 u64 tsf, time; in mt76x02u_restart_pre_tbtt_timer() local 155 time = ((1000000000ull * dev->mt76.beacon_int) >> 10); in mt76x02u_restart_pre_tbtt_timer() 157 /* Adjust time to trigger hrtimer 8ms before TBTT */ in mt76x02u_restart_pre_tbtt_timer() 159 time -= (PRE_TBTT_USEC - tbtt) * 1000ull; in mt76x02u_restart_pre_tbtt_timer() 161 time += (tbtt - PRE_TBTT_USEC) * 1000ull; in mt76x02u_restart_pre_tbtt_timer() 163 hrtimer_start(&dev->pre_tbtt_timer, time, HRTIMER_MODE_REL); in mt76x02u_restart_pre_tbtt_timer()
|
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-vr41xx.c | 113 static int vr41xx_rtc_read_time(struct device *dev, struct rtc_time *time) in vr41xx_rtc_read_time() argument 120 rtc_time64_to_tm(epoch_sec + elapsed_sec, time); in vr41xx_rtc_read_time() 125 static int vr41xx_rtc_set_time(struct device *dev, struct rtc_time *time) in vr41xx_rtc_set_time() argument 130 current_sec = rtc_tm_to_time64(time); in vr41xx_rtc_set_time() 140 struct rtc_time *time = &wkalrm->time; in vr41xx_rtc_read_alarm() local 151 rtc_time64_to_tm((high << 17) | (mid << 1) | (low >> 15), time); in vr41xx_rtc_read_alarm() 160 alarm_sec = rtc_tm_to_time64(&wkalrm->time); in vr41xx_rtc_set_alarm()
|
/kernel/linux/linux-5.10/fs/fat/ |
H A D | misc.c | 171 * time: 0 - 4: sec (0 - 29) 2sec counts 172 * time: 5 - 10: min (0 - 59) 173 * time: 11 - 15: hour (0 - 23) 197 /* Convert a FAT time/date pair to a UNIX date (seconds since 1 1 70). */ 201 u16 time = le16_to_cpu(__time), date = le16_to_cpu(__date); in fat_time_fat2unix() local 215 second = (time & 0x1f) << 1; in fat_time_fat2unix() 216 second += ((time >> 5) & 0x3f) * SECS_PER_MIN; in fat_time_fat2unix() 217 second += (time >> 11) * SECS_PER_HOUR; in fat_time_fat2unix() 233 /* Convert linear UNIX date to a FAT time/date pair. */ 235 __le16 *time, __le1 in fat_time_unix2fat() 234 fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec64 *ts, __le16 *time, __le16 *date, u8 *time_cs) fat_time_unix2fat() argument [all...] |
/kernel/linux/linux-5.10/kernel/trace/ |
H A D | ring_buffer_benchmark.c | 21 /* run time and sleep time in seconds */ 233 unsigned long long time; in ring_buffer_producer() local 274 * cond_resched and also add any time that was lost by a in ring_buffer_producer() 297 time = ktime_us_delta(end_time, start_time); in ring_buffer_producer() 325 trace_printk("Time: %lld (usecs)\n", time); in ring_buffer_producer() 337 /* Convert time from usecs to millisecs */ in ring_buffer_producer() 338 do_div(time, USEC_PER_MSEC); in ring_buffer_producer() 339 if (time) in ring_buffer_producer() 340 hit /= (long)time; in ring_buffer_producer() [all...] |
/kernel/linux/linux-6.6/fs/fat/ |
H A D | misc.c | 177 * time: 0 - 4: sec (0 - 29) 2sec counts 178 * time: 5 - 10: min (0 - 59) 179 * time: 11 - 15: hour (0 - 23) 203 /* Convert a FAT time/date pair to a UNIX date (seconds since 1 1 70). */ 207 u16 time = le16_to_cpu(__time), date = le16_to_cpu(__date); in fat_time_fat2unix() local 221 second = (time & 0x1f) << 1; in fat_time_fat2unix() 222 second += ((time >> 5) & 0x3f) * SECS_PER_MIN; in fat_time_fat2unix() 223 second += (time >> 11) * SECS_PER_HOUR; in fat_time_fat2unix() 242 /* Convert linear UNIX date to a FAT time/date pair. */ 244 __le16 *time, __le1 in fat_time_unix2fat() 243 fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec64 *ts, __le16 *time, __le16 *date, u8 *time_cs) fat_time_unix2fat() argument [all...] |
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | cpufreq_stats.c | 31 unsigned long long time) in cpufreq_stats_update() 35 stats->time_in_state[stats->last_index] += cur_time - time; in cpufreq_stats_update() 48 /* Adjust for the time elapsed since reset was requested */ in cpufreq_stats_reset_table() 73 unsigned long long time; in show_time_in_state() local 85 time = local_clock() - READ_ONCE(stats->reset_time); in show_time_in_state() 87 time = 0; in show_time_in_state() 90 time = stats->time_in_state[i]; in show_time_in_state() 92 time += local_clock() - stats->last_time; in show_time_in_state() 96 nsec_to_clock_t(time)); in show_time_in_state() 30 cpufreq_stats_update(struct cpufreq_stats *stats, unsigned long long time) cpufreq_stats_update() argument
|