Changeset 222 for trunk/apps/obexftp.c
- Timestamp:
- 08/06/08 19:40:02 (2 years ago)
- Files:
-
- 1 modified
-
trunk/apps/obexftp.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/apps/obexftp.c
r200 r222 29 29 30 30 #include <sys/types.h> 31 32 #ifdef HAVE_SYS_TIMES_H 33 #include <sys/times.h> 34 #endif 31 35 32 36 #include <obexftp/obexftp.h> … … 246 250 { 247 251 int ret, retry; 252 #ifdef HAVE_SYS_TIMES_H 253 clock_t clock; 254 #endif 248 255 249 256 if (cli == NULL) { … … 266 273 267 274 /* Connect */ 275 #ifdef HAVE_SYS_TIMES_H 276 clock = times(NULL); 277 #endif 268 278 ret = obexftp_connect_src(cli, src_dev, device, channel, uuid, uuid_len); 279 #ifdef HAVE_SYS_TIMES_H 280 clock = times(NULL)-clock; 281 fprintf(stderr, "Tried to connect for %ldms\n", clock); 282 #endif 269 283 if (ret >= 0) 270 284 return TRUE;
