| /third_party/vk-gl-cts/framework/delibs/deutil/ |
| H A D | deTimer.c | 21 * \brief Periodic timer. 39 HANDLE timer; member 44 const deTimer* timer = (const deTimer*)lpParameter; in timerCallback() local 47 timer->callback(timer->callbackArg); in timerCallback() 52 deTimer* timer = (deTimer*)deCalloc(sizeof(deTimer)); in deTimer_create() local 54 if (!timer) in deTimer_create() 57 timer->callback = callback; in deTimer_create() 58 timer->callbackArg = arg; in deTimer_create() 59 timer in deTimer_create() 64 deTimer_destroy(deTimer* timer) deTimer_destroy() argument 74 deTimer_isActive(const deTimer* timer) deTimer_isActive() argument 79 deTimer_scheduleSingle(deTimer* timer, int milliseconds) deTimer_scheduleSingle() argument 99 deTimer_scheduleInterval(deTimer* timer, int milliseconds) deTimer_scheduleInterval() argument 119 deTimer_disable(deTimer* timer) deTimer_disable() argument 165 timer_t timer; global() member 172 const deTimer* timer = (const deTimer*)val.sival_ptr; timerCallback() local 178 deTimer* timer = (deTimer*)deCalloc(sizeof(deTimer)); deTimer_create() local 202 deTimer_destroy(deTimer* timer) deTimer_destroy() argument 210 deTimer_isActive(const deTimer* timer) deTimer_isActive() argument 215 deTimer_scheduleSingle(deTimer* timer, int milliseconds) deTimer_scheduleSingle() argument 236 deTimer_scheduleInterval(deTimer* timer, int milliseconds) deTimer_scheduleInterval() argument 257 deTimer_disable(deTimer* timer) deTimer_disable() argument 383 deTimer* timer = (deTimer*)deCalloc(sizeof(deTimer)); deTimer_create() local 394 deTimer_destroy(deTimer* timer) deTimer_destroy() argument 401 deTimer_isActive(const deTimer* timer) deTimer_isActive() argument 417 deTimer_scheduleSingle(deTimer* timer, int milliseconds) deTimer_scheduleSingle() argument 428 deTimer_scheduleInterval(deTimer* timer, int milliseconds) deTimer_scheduleInterval() argument 439 deTimer_disable(deTimer* timer) deTimer_disable() argument [all...] |
| H A D | deTimerTest.c | 21 * \brief Periodic timer test. 46 deTimer* timer = DE_NULL; in deTimer_selfTest() local 51 timer = deTimer_create(timerCallback, (void*)&numCalls); in deTimer_selfTest() 52 DE_TEST_ASSERT(timer); in deTimer_selfTest() 61 printf("Iter %d / %d: %d ms %s timer\n", iter+1, numIters, interval, (isSingle ? "single" : "interval")); in deTimer_selfTest() 65 scheduleOk = deTimer_scheduleSingle(timer, interval); in deTimer_selfTest() 67 scheduleOk = deTimer_scheduleInterval(timer, interval); in deTimer_selfTest() 72 deTimer_disable(timer); in deTimer_selfTest() 75 printf(" timer fired %d times, expected %d\n", numCalls, expectedCalls); in deTimer_selfTest() 79 deTimer_destroy(timer); in deTimer_selfTest() [all...] |
| /third_party/libinput/src/ |
| H A D | timer.c | 33 #include "timer.h" 36 libinput_timer_init(struct libinput_timer *timer, in libinput_timer_init() argument 42 timer->libinput = libinput; in libinput_timer_init() 43 timer->timer_name = safe_strdup(timer_name); in libinput_timer_init() 44 timer->timer_func = timer_func; in libinput_timer_init() 45 timer->timer_func_data = timer_func_data; in libinput_timer_init() 47 ratelimit_init(&libinput->timer.expiry_in_past_limit, in libinput_timer_init() 52 libinput_timer_destroy(struct libinput_timer *timer) in libinput_timer_destroy() argument 54 if (timer->link.prev != NULL && timer in libinput_timer_destroy() 68 struct libinput_timer *timer; libinput_timer_arm_timer_fd() local 90 libinput_timer_set_flags(struct libinput_timer *timer, uint64_t expire, uint32_t flags) libinput_timer_set_flags() argument 124 libinput_timer_set(struct libinput_timer *timer, uint64_t expire) libinput_timer_set() argument 130 libinput_timer_cancel(struct libinput_timer *timer) libinput_timer_cancel() argument 143 struct libinput_timer *timer; libinput_timer_handler() local [all...] |
| /third_party/FreeBSD/sys/compat/linuxkpi/common/src/ |
| H A D | linux_timer.c | 32 #include "linux/timer.h" 36 void linux_init_timer(struct timer_list *timer) in linux_init_timer() argument 40 if (timer == NULL) { in linux_init_timer() 41 PRINTK("init_timer<error> timer is NULL\n"); in linux_init_timer() 44 LOS_SpinInit(&timer->lock); in linux_init_timer() 45 LOS_SpinLockSave(&timer->lock, &intSave); in linux_init_timer() 46 timer->flag = TIMER_UNVALID; in linux_init_timer() 47 LOS_SpinUnlockRestore(&timer->lock, intSave); in linux_init_timer() 50 STATIC UINT32 DoDeleteTimer(struct timer_list *timer) in DoDeleteTimer() argument 54 ret = LOS_SwtmrDelete(timer in DoDeleteTimer() 61 DoAddTimer(struct timer_list *timer) DoAddTimer() argument 78 linux_add_timer(struct timer_list *timer) linux_add_timer() argument 103 linux_del_timer(struct timer_list *timer) linux_del_timer() argument 122 linux_mod_timer(struct timer_list *timer, unsigned long expires) linux_mod_timer() argument [all...] |
| H A D | linux_hrtimer.c | 127 struct hrtimer timer; in HrtimerHandlerRun() local 143 timer._softexpires.tv.usec = hrtimer->_softexpires.tv.usec; in HrtimerHandlerRun() 144 timer._softexpires.tv.sec = hrtimer->_softexpires.tv.sec; in HrtimerHandlerRun() 150 timer.function = handler->pfnHandler; in HrtimerHandlerRun() 151 restart = handler->pfnHandler(&timer); in HrtimerHandlerRun() 180 STATIC VOID GetHandlerNodePosition(const struct hrtimer *timer, struct hrtimer_list_node *hrtimerNode, in GetHandlerNodePosition() argument 188 if ((curHandler->pfnHandler == timer->function) && in GetHandlerNodePosition() 189 (curHandler->_softexpires.tv.sec == timer->_softexpires.tv.sec) && in GetHandlerNodePosition() 190 (curHandler->_softexpires.tv.usec == timer->_softexpires.tv.usec)) { in GetHandlerNodePosition() 200 STATIC VOID GetHrtimerNodePosition(const struct hrtimer *timer, struc argument 286 CancelHandlerNode(const struct hrtimer *timer, struct hrtimer_list_node *curNode) CancelHandlerNode() argument 323 linux_hrtimer_init(struct hrtimer *timer, clockid_t clockID, enum hrtimer_mode mode) linux_hrtimer_init() argument 332 linux_hrtimer_create(struct hrtimer *timer, union ktime time, Handler handler) linux_hrtimer_create() argument 352 HandleNodeInit(union ktime time, struct hrtimer *timer) HandleNodeInit() argument 365 linux_hrtimer_start(struct hrtimer *timer, union ktime time, const enum hrtimer_mode mode) linux_hrtimer_start() argument 416 linux_hrtimer_cancel(struct hrtimer *timer) linux_hrtimer_cancel() argument 471 linux_hrtimer_forward(struct hrtimer *timer, union ktime interval) linux_hrtimer_forward() argument 506 linux_hrtimer_is_queued(struct hrtimer *timer) linux_hrtimer_is_queued() argument [all...] |
| /third_party/alsa-lib/src/timer/ |
| H A D | timer.c | 2 * \file timer/timer.c 8 * See \ref timer page for more details. 31 /*! \page timer Timer interface 34 it can be driven with any timer. 38 The timer implementation uses ring buffer to store information about timing 58 \par Simple timer test program 61 This example shows opening a timer device and reading of timer events. 66 * \example ../test/timer 74 snd_timer_open_conf(snd_timer_t **timer, const char *name, snd_config_t *timer_root, snd_config_t *timer_conf, int mode) snd_timer_open_conf() argument 178 snd_timer_open_noupdate(snd_timer_t **timer, snd_config_t *root, const char *name, int mode) snd_timer_open_noupdate() argument 202 snd_timer_open(snd_timer_t **timer, const char *name, int mode) snd_timer_open() argument 233 snd_timer_open_lconf(snd_timer_t **timer, const char *name, int mode, snd_config_t *lconf) snd_timer_open_lconf() argument 248 snd_timer_close(snd_timer_t *timer) snd_timer_close() argument 272 snd_timer_name(snd_timer_t *timer) snd_timer_name() argument 285 snd_timer_type(snd_timer_t *timer) snd_timer_type() argument 301 snd_async_add_timer_handler(snd_async_handler_t **handler, snd_timer_t *timer, snd_async_callback_t callback, void *private_data) snd_async_add_timer_handler() argument 345 snd_timer_poll_descriptors_count(snd_timer_t *timer) snd_timer_poll_descriptors_count() argument 358 snd_timer_poll_descriptors(snd_timer_t *timer, struct pollfd *pfds, unsigned int space) snd_timer_poll_descriptors() argument 389 snd_timer_poll_descriptors_revents(snd_timer_t *timer, struct pollfd *pfds, unsigned int nfds, unsigned short *revents) snd_timer_poll_descriptors_revents() argument 405 snd_timer_nonblock(snd_timer_t *timer, int nonblock) snd_timer_nonblock() argument 428 snd_timer_async(snd_timer_t *timer, int sig, pid_t pid) snd_timer_async() argument 551 snd_timer_info(snd_timer_t *timer, snd_timer_info_t * info) snd_timer_info() argument 778 snd_timer_params(snd_timer_t *timer, snd_timer_params_t * params) snd_timer_params() argument 898 snd_timer_status(snd_timer_t *timer, snd_timer_status_t * status) snd_timer_status() argument 910 snd_timer_start(snd_timer_t *timer) snd_timer_start() argument 921 snd_timer_stop(snd_timer_t *timer) snd_timer_stop() argument 932 snd_timer_continue(snd_timer_t *timer) snd_timer_continue() argument 944 snd_timer_read(snd_timer_t *timer, void *buffer, size_t size) snd_timer_read() argument [all...] |
| H A D | timer_local.h | 28 int (*close)(snd_timer_t *timer); 29 int (*nonblock)(snd_timer_t *timer, int nonblock); 30 int (*async)(snd_timer_t *timer, int sig, pid_t pid); 31 int (*info)(snd_timer_t *timer, snd_timer_info_t *info); 32 int (*params)(snd_timer_t *timer, snd_timer_params_t *params); 33 int (*status)(snd_timer_t *timer, snd_timer_status_t *status); 34 int (*rt_start)(snd_timer_t *timer); 35 int (*rt_stop)(snd_timer_t *timer); 36 int (*rt_continue)(snd_timer_t *timer); 37 ssize_t (*read)(snd_timer_t *timer, voi [all...] |
| H A D | timer_query.c | 2 * \file timer/timer_query.c 31 static int snd_timer_query_open_conf(snd_timer_query_t **timer, in snd_timer_query_open_conf() argument 127 err = open_func(timer, name, timer_root, timer_conf, mode); in snd_timer_query_open_conf() 131 (*timer)->dl_handle = h; in snd_timer_query_open_conf() 136 static int snd_timer_query_open_noupdate(snd_timer_query_t **timer, snd_config_t *root, const char *name, int mode) in snd_timer_query_open_noupdate() argument 142 SNDERR("Unknown timer %s", name); in snd_timer_query_open_noupdate() 145 err = snd_timer_query_open_conf(timer, name, root, timer_conf, mode); in snd_timer_query_open_noupdate() 151 * \brief Opens a new connection to the timer query interface. 152 * \param timer Returned handle (NULL if not wanted) 160 int snd_timer_query_open(snd_timer_query_t **timer, cons argument 185 snd_timer_query_open_lconf(snd_timer_query_t **timer, const char *name, int mode, snd_config_t *lconf) snd_timer_query_open_lconf() argument 200 snd_timer_query_close(snd_timer_query_t *timer) snd_timer_query_close() argument 221 snd_timer_query_next_device(snd_timer_query_t *timer, snd_timer_id_t *tid) snd_timer_query_next_device() argument 387 snd_timer_query_info(snd_timer_query_t *timer, snd_timer_ginfo_t *info) snd_timer_query_info() argument 405 snd_timer_query_params(snd_timer_query_t *timer, snd_timer_gparams_t *params) snd_timer_query_params() argument 423 snd_timer_query_status(snd_timer_query_t *timer, snd_timer_gstatus_t *status) snd_timer_query_status() argument [all...] |
| /third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/ |
| H A D | timer.h | 55 static inline int timer_pending(const timer_list_t *timer) in timer_pending() argument 57 (void)timer; in timer_pending() 61 #define init_timer(timer) \ 62 linux_init_timer(timer) 64 #define add_timer(timer) \ 65 linux_add_timer(timer) 67 #define del_timer(timer) \ 68 linux_del_timer(timer) 70 #define mod_timer(timer, expires) \ 71 linux_mod_timer(timer, expire [all...] |
| H A D | hrtimer.h | 42 * Define the number of timer cycles in 1us. 77 * Structure of a node in a high-resolution timer queue. 85 * Enumerative structure of the high-resolution timer mode arguments. 95 * Enumerative structure of the return type of a high-resolution timer timeout callback function. 98 HRTIMER_NORESTART, /**< The timer will not be restarted.*/ 99 HRTIMER_RESTART /**< The timer must be restarted.*/ 105 * Define the function handler type of a high-resolution timer timeout callback function. 111 * Structure of parameters of a high-resolution timer API. 118 int start_pid; /**< ID of the task that invokes a high-resolution timer. 120 void *start_site; /**< Function that invokes a high-resolution timer [all...] |
| /third_party/libuv/test/ |
| H A D | test-active.c | 45 uv_timer_t timer; in TEST_IMPL() local 47 r = uv_timer_init(uv_default_loop(), &timer); in TEST_IMPL() 51 ASSERT_OK(uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL() 52 ASSERT_OK(uv_is_closing((uv_handle_t*) &timer)); in TEST_IMPL() 54 r = uv_timer_start(&timer, timer_cb, 1000, 0); in TEST_IMPL() 57 ASSERT_EQ(1, uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL() 58 ASSERT_OK(uv_is_closing((uv_handle_t*) &timer)); in TEST_IMPL() 60 r = uv_timer_stop(&timer); in TEST_IMPL() 63 ASSERT_OK(uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL() 64 ASSERT_OK(uv_is_closing((uv_handle_t*) &timer)); in TEST_IMPL() [all...] |
| H A D | test-fs-event.c | 49 static uv_timer_t timer; variable 161 ASSERT_OK(uv_timer_start(&timer, fs_event_create_files, 100, 0)); in fs_event_create_files() 169 /* NOTE: handle might be NULL if invoked not as timer callback */ in fs_event_unlink_files() 187 ASSERT_OK(uv_timer_start(&timer, fs_event_unlink_files, 1, 0)); in fs_event_unlink_files() 209 ASSERT_OK(uv_timer_start(&timer, fs_event_unlink_files, 1, 0)); in fs_event_cb_dir_multi_file() 212 uv_close((uv_handle_t*) &timer, close_cb); in fs_event_cb_dir_multi_file() 237 ASSERT_OK(uv_timer_start(&timer, fs_event_create_files_in_subdir, 100, 0)); in fs_event_create_files_in_subdir() 245 /* NOTE: handle might be NULL if invoked not as timer callback */ in fs_event_unlink_files_in_subdir() 263 ASSERT_OK(uv_timer_start(&timer, in fs_event_unlink_files_in_subdir() 307 ASSERT_OK(uv_timer_start(&timer, in fs_event_cb_dir_multi_file_in_subdir() 362 timer_cb_touch(uv_timer_t* timer) timer_cb_touch() argument 664 uv_timer_t timer; TEST_IMPL() local 686 uv_timer_t timer; TEST_IMPL() local 857 uv_timer_t timer; TEST_IMPL() local 1212 uv_timer_t timer; TEST_IMPL() local [all...] |
| H A D | test-tcp-connect-timeout.c | 32 static uv_timer_t timer; variable 48 ASSERT_PTR_EQ(handle, &timer); in timer_cb() 50 uv_close((uv_handle_t*)&timer, close_cb); in timer_cb() 55 ASSERT(handle == (uv_handle_t*)&conn || handle == (uv_handle_t*)&timer); in close_cb() 69 r = uv_timer_init(uv_default_loop(), &timer); in TEST_IMPL() 72 r = uv_timer_start(&timer, timer_cb, 50, 0); in TEST_IMPL() 135 r = uv_timer_init(uv_default_loop(), &timer); in TEST_IMPL() 139 r = uv_timer_start(&timer, timer_cb, 1000, 0); in TEST_IMPL() 173 r = uv_timer_init(uv_default_loop(), &timer); in TEST_IMPL() 177 r = uv_timer_start(&timer, timer_c in TEST_IMPL() [all...] |
| /third_party/icu/icu4c/source/tools/ctestfw/unicode/ |
| H A D | utimer.h | 58 * UTimer timer; 128 * void perf(UTimer* timer, UChar* source, int32_t sourceLen, UChar* target, int32_t targetLen, int32_t loopCount,UNormalizationMode mode, UErrorCode* error){ 133 * utimer_getTime(timer); 172 static int uprv_initFrequency(UTimer* timer) in uprv_initFrequency() argument 174 return QueryPerformanceFrequency(&timer->placeHolder); in uprv_initFrequency() 176 static void uprv_start(UTimer* timer) in uprv_start() argument 178 QueryPerformanceCounter(&timer->start); in uprv_start() 194 static int32_t uprv_initFrequency(UTimer* /*timer*/) in uprv_initFrequency() 198 static void uprv_start(UTimer* timer) in uprv_start() argument 200 gettimeofday(&timer in uprv_start() 220 utimer_getTime(UTimer* timer) utimer_getTime() argument 249 utimer_getElapsedSeconds(UTimer* timer) utimer_getElapsedSeconds() argument 269 UTimer timer; utimer_loopUntilDone() local [all...] |
| /third_party/skia/third_party/externals/icu/source/tools/ctestfw/unicode/ |
| H A D | utimer.h | 58 * UTimer timer; 128 * void perf(UTimer* timer, UChar* source, int32_t sourceLen, UChar* target, int32_t targetLen, int32_t loopCount,UNormalizationMode mode, UErrorCode* error){ 133 * utimer_getTime(timer); 172 static int uprv_initFrequency(UTimer* timer) in uprv_initFrequency() argument 174 return QueryPerformanceFrequency(&timer->placeHolder); in uprv_initFrequency() 176 static void uprv_start(UTimer* timer) in uprv_start() argument 178 QueryPerformanceCounter(&timer->start); in uprv_start() 194 static int32_t uprv_initFrequency(UTimer* /*timer*/) in uprv_initFrequency() 198 static void uprv_start(UTimer* timer) in uprv_start() argument 200 gettimeofday(&timer in uprv_start() 220 utimer_getTime(UTimer* timer) utimer_getTime() argument 249 utimer_getElapsedSeconds(UTimer* timer) utimer_getElapsedSeconds() argument 269 UTimer timer; utimer_loopUntilDone() local [all...] |
| /third_party/skia/tools/viewer/ |
| H A D | StatsLayer.cpp | 46 void StatsLayer::beginTiming(Timer timer) { in beginTiming() argument 48 fTimers[timer].fTimes[fCurrentMeasurement] -= SkTime::GetMSecs(); in beginTiming() 52 void StatsLayer::endTiming(Timer timer) { in endTiming() argument 54 fTimers[timer].fTimes[fCurrentMeasurement] += SkTime::GetMSecs(); in endTiming() 130 for (int timer = 0; timer < fTimers.count(); ++timer) { in onPaint() 131 int height = (int)(fTimers[timer].fTimes[i] * kPixelPerMS + 0.5); in onPaint() 133 paint.setColor(fTimers[timer].fColor); in onPaint() 137 inc += fTimers[timer] in onPaint() [all...] |
| /third_party/node/lib/internal/ |
| H A D | timers.js | 6 // timer so that we can time out of connections. Additionally, many user 21 // - Adding a new timer. (insert) 22 // - Removing an existing timer. (remove) 23 // - Handling a timer timing out. (timeout) 59 // duration. Therefore, any timer added later will always have been scheduled to 124 let debug = require('internal/util/debuglog').debuglog('timer', (fn) => { 319 // Schedule or re-schedule a timer. 331 // The underlying logic for scheduling or re-scheduling a timer. 333 // Appends a timer onto the end of an existing timers list, or creates a new 386 const timer [all...] |
| /third_party/node/deps/undici/src/lib/ |
| H A D | timers.js | 14 const timer = fastTimers[idx] 16 if (timer.state === 0) { 17 timer.state = fastNow + timer.delay 18 } else if (timer.state > 0 && fastNow >= timer.state) { 19 timer.state = -1 20 timer.callback(timer.opaque) 23 if (timer [all...] |
| /third_party/rust/crates/nix/test/sys/ |
| H A D | test_timerfd.rs | 9 let timer = in test_timerfd_oneshot() 14 timer in test_timerfd_oneshot() 21 timer.wait().unwrap(); in test_timerfd_oneshot() 29 let timer = in test_timerfd_interval() 33 timer in test_timerfd_interval() 43 timer.wait().unwrap(); in test_timerfd_interval() 48 timer.wait().unwrap(); in test_timerfd_interval() 56 let timer = in test_timerfd_unset() 59 timer in test_timerfd_unset() 66 timer in test_timerfd_unset() [all...] |
| /third_party/musl/Benchmark/musl/ |
| H A D | libc_time.cpp | 208 // Used to set the timer 212 struct itimerval timer; in Bm_function_Setitimer_realtime() local 213 timer.it_value.tv_sec = 1; in Bm_function_Setitimer_realtime() 214 timer.it_value.tv_usec = 0; in Bm_function_Setitimer_realtime() 215 timer.it_interval.tv_sec = 1; in Bm_function_Setitimer_realtime() 216 timer.it_interval.tv_usec = 0; in Bm_function_Setitimer_realtime() 220 if (setitimer(ITIMER_REAL, &timer, nullptr) == -1) { in Bm_function_Setitimer_realtime() 221 perror("Set timer error!"); in Bm_function_Setitimer_realtime() 223 benchmark::DoNotOptimize(timer); in Bm_function_Setitimer_realtime() 230 struct itimerval timer; in Bm_function_Setitimer_peoftime() local 248 struct itimerval timer; Bm_function_Setitimer_virtualtime() local [all...] |
| /third_party/node/lib/internal/test_runner/mock/ |
| H A D | mock_timers.js | 300 ArrayPrototypeForEach(this.#timersInContext, (timer) => target[timer]()); 480 let timer = this.#executionQueue.peek(); 481 while (timer) { 482 if (timer.runAt > this.#now) break; 483 FunctionPrototypeApply(timer.callback, undefined, timer.args); 487 if (timer.interval) { 488 timer.runAt += timer [all...] |
| /third_party/python/Lib/test/ |
| H A D | test_sched.py | 65 timer = Timer() 66 scheduler = sched.scheduler(timer.time, timer.sleep) 71 timer.advance(1) 76 timer.advance(2) 80 timer.advance(1) 83 timer.advance(1) 86 timer.advance(1000) 89 self.assertEqual(timer.time(), 5) 132 timer [all...] |
| /third_party/python/Lib/ |
| H A D | profile.py | 34 # Sample timer for use with 40 #itimes = integer_timer # replace with C coded timer returning integers 144 def __init__(self, timer=None, bias=None): 154 if not timer: 155 self.timer = self.get_time = time.process_time 158 self.timer = timer 159 t = self.timer() # test out timer function 163 self.get_time = timer [all...] |
| H A D | timeit.py | 16 -r/--repeat N: how many times to repeat the timer (default 5) 88 statement used for setup, and a timer function. Both statements 89 default to 'pass'; the timer function is platform-dependent (see 102 def __init__(self, stmt="pass", setup="pass", timer=default_timer, 105 self.timer = timer 172 the timer function to be used are passed to the constructor. 178 timing = self.inner(it, self.timer) 190 the second argument specifies the timer argument, defaulting 231 def timeit(stmt="pass", setup="pass", timer [all...] |
| /third_party/skia/third_party/externals/spirv-tools/test/ |
| H A D | timer_test.cpp | 19 #include "source/util/timer.h" 46 MockTimer timer(&buf); in TEST() 47 timer.Start(); in TEST() 51 timer.Stop(); in TEST() 52 timer.Report("TimerTest"); in TEST() 54 EXPECT_EQ(0.019123, timer.CPUTime()); in TEST() 55 EXPECT_EQ(0.019723, timer.WallTime()); in TEST() 56 EXPECT_EQ(0.012723, timer.UserTime()); in TEST() 57 EXPECT_EQ(0.002723, timer.SystemTime()); in TEST()
|