20 std::string lhsCpy(lhs);
21 std::string rhsCpy(rhs);
22 std::transform(lhsCpy.begin(), lhsCpy.end(), lhsCpy.begin(), tolower);
23 std::transform(rhsCpy.begin(), rhsCpy.end(), rhsCpy.begin(), tolower);
24 return (lhsCpy == rhsCpy);
30 if (start.tv_sec == stop.tv_sec)
31 result = abs(stop.tv_usec - start.tv_usec);
32 else if (start.tv_sec > stop.tv_sec)
34 time_t sec = start.tv_sec - stop.tv_sec;
35 result = sec*1000000+start.tv_usec - stop.tv_usec;
39 time_t sec = stop.tv_sec - start.tv_sec;
40 result = sec*1000000+stop.tv_usec - start.tv_usec;