Tiny HTTP client layer on top of NetChat - and CTest support for some SimGear tests.

This commit is contained in:
James Turner
2011-07-19 12:55:55 +01:00
parent 116c487384
commit f06f25532c
16 changed files with 953 additions and 10 deletions
+7
View File
@@ -104,3 +104,10 @@ void SGTimeStamp::stamp() {
#endif
}
int SGTimeStamp::elapsedMSec() const
{
SGTimeStamp now;
now.stamp();
return static_cast<int>((now - *this).toMSecs());
}
+4
View File
@@ -195,6 +195,10 @@ public:
static SGTimeStamp now()
{ SGTimeStamp ts; ts.stamp(); return ts; }
/**
* elapsed time since the stamp was taken, in msec
*/
int elapsedMSec() const;
private:
SGTimeStamp(sec_type sec, nsec_type nsec)
{ setTime(sec, nsec); }