Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F631214
timedifference.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
542 B
Referenced Files
None
Subscribers
None
timedifference.h
View Options
#ifndef _time_difference_h
#define _time_difference_h
#include
<time.h>
#include
<sys/time.h>
#include
<string>
using
namespace
std
;
class
TimeDifference
{
public
:
TimeDifference
();
inline
void
startTime
(){
#ifndef WINDOWS
gettimeofday
(
&
start
,
NULL
);
#endif
}
inline
void
endTime
(){
#ifndef WINDOWS
gettimeofday
(
&
end
,
NULL
);
#endif
}
unsigned
long
long
int
getTime
();
const
string
printTime
();
const
string
printTime
(
const
string
&
s
);
~
TimeDifference
();
protected
:
struct
timeval
start
,
end
;
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 11:27 AM (5 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152295
Default Alt Text
timedifference.h (542 B)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline