Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F76902551
time.h
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
Sun, Aug 11, 02:25
Size
466 B
Mime Type
text/x-c
Expires
Tue, Aug 13, 02:25 (2 d)
Engine
blob
Format
Raw Data
Handle
19792255
Attached To
rLAMMPS lammps
time.h
View Options
#ifndef GETTIMEOFDAY_H
#define GETTIMEOFDAY_H
//#include <config.h>
#include <sys/timeb.h>
//#include "../include/time.h"
struct timeval
{
time_t tv_sec;
time_t tv_usec;
};
__inline int gettimeofday(struct timeval *tp, void *tzp)
{
struct _timeb timebuffer;
_ftime(&timebuffer);
tp->tv_sec = timebuffer.time;
tp->tv_usec = timebuffer.millitm * 1000;
return 0;
}
#endif /* GETTIMEOFDAY_H */
Event Timeline
Log In to Comment