Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: base/third_party/libevent/sample/time-test.c

Issue 1531573008: move libevent into base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix shim path Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/third_party/libevent/sample/signal-test.c ('k') | base/third_party/libevent/select.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Compile with: 2 * Compile with:
3 * cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent 3 * cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent
4 */ 4 */
5 5
6 #include <sys/types.h> 6 #include <sys/types.h>
7 7
8 #ifdef HAVE_CONFIG_H 8 #ifdef HAVE_CONFIG_H
9 #include "config.h" 9 #include "config.h"
10 #endif 10 #endif
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 tv.tv_sec = 2; 61 tv.tv_sec = 2;
62 event_add(&timeout, &tv); 62 event_add(&timeout, &tv);
63 63
64 lasttime = time(NULL); 64 lasttime = time(NULL);
65 65
66 event_dispatch(); 66 event_dispatch();
67 67
68 return (0); 68 return (0);
69 } 69 }
70 70
OLDNEW
« no previous file with comments | « base/third_party/libevent/sample/signal-test.c ('k') | base/third_party/libevent/select.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698