Home | History | Annotate | Download | only in testUtil

Lines Matching refs:amt

68 struct timespec double2ts(double amt)
72 rv.tv_sec = floor(amt);
73 rv.tv_nsec = (amt - rv.tv_sec) * nSecsPerSec;
74 // TODO: Handle cases where amt is negative
84 struct timeval double2tv(double amt)
88 rv.tv_sec = floor(amt);
89 rv.tv_usec = (amt - rv.tv_sec) * uSecsPerSec;
90 // TODO: Handle cases where amt is negative
259 // Delays for the number of seconds specified by amt or a greater amount.
260 // The amt variable is of type float and thus non-integer amounts
263 void testDelay(float amt)
277 if (ts2double(&delta) > amt) { break; }
280 remaining = double2ts(amt - ts2double(&delta));
285 // Delay spins for the number of seconds specified by amt or a greater
286 // amount. The amt variable is of type float and thus non-integer amounts
289 void testDelaySpin(float amt)
302 if (ts2double(&delta) > amt) { break; }