cwTime.h/cpp : Added test().
This commit is contained in:
parent
c156a2fe85
commit
09a02e9a9b
18
cwTime.cpp
18
cwTime.cpp
@ -157,3 +157,21 @@ cw::rc_t cw::time::futureMs( spec_t& ts, unsigned ms )
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
cw::rc_t cw::time::test()
|
||||
{
|
||||
|
||||
spec_t t0,t1;
|
||||
|
||||
get(t0);
|
||||
|
||||
futureMs(t1,1000);
|
||||
|
||||
unsigned dMs = elapsedMs(t0,t1);
|
||||
|
||||
printf("dMs:%i\n",dMs);
|
||||
|
||||
return kOkRC;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user