Lines Matching refs:ctime
380 unsigned long ctime = inv_get_tick_count(); in inv_accel_compass_supervisor() local
382 ((ctime - polltime) > 20)) || in inv_accel_compass_supervisor()
383 (polltime == 0 || ((ctime - polltime) > 20))) { // 50Hz max in inv_accel_compass_supervisor()
386 MPL_LOGV("delta time = %ld\n", ctime - polltime); in inv_accel_compass_supervisor()
388 polltime = ctime; in inv_accel_compass_supervisor()
434 disturbtime = ctime; in inv_accel_compass_supervisor()
443 coiltime = ctime; in inv_accel_compass_supervisor()
447 if (ctime - coiltime > 3000) { in inv_accel_compass_supervisor()
456 if (ctime - disturbtime > 10000) { in inv_accel_compass_supervisor()
508 unsigned long ctime = inv_get_tick_count(); in inv_accel_compass_supervisor() local
509 if (polltime == 0 || ((ctime - polltime) > 80)) { // at the beginning AND every 1/8 second in inv_accel_compass_supervisor()
514 deltaTime = ctime - polltime; in inv_accel_compass_supervisor()
517 polltime = ctime; in inv_accel_compass_supervisor()
555 unsigned long ctime = inv_get_tick_count(); in inv_pressure_supervisor() local
556 if ((pressurePolltime == 0 || ((ctime - pressurePolltime) > 80))) { //every 1/8 second in inv_pressure_supervisor()
559 MPL_LOGV("delta time = %ld\n", ctime - pressurePolltime); in inv_pressure_supervisor()
561 pressurePolltime = ctime; in inv_pressure_supervisor()