Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F73098886
timing.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 18, 11:29
Size
168 B
Mime Type
text/x-c
Expires
Sat, Jul 20, 11:29 (2 d)
Engine
blob
Format
Raw Data
Handle
19141672
Attached To
rSCINTROPARALLEL Poisson code for introduction to parallelism
timing.c
View Options
#include <sys/time.h>
#include <time.h>
double
second
()
{
struct
timeval
tp
;
gettimeofday
(
&
tp
,
NULL
);
return
((
double
)
tp
.
tv_sec
+
(
double
)
tp
.
tv_usec
*
1.e-6
);
}
Event Timeline
Log In to Comment