cwTime.h/cpp : Added test().

This commit is contained in:
kevin.larke 2020-04-17 13:28:09 -04:00
parent c156a2fe85
commit 09a02e9a9b
2 changed files with 20 additions and 0 deletions

View File

@ -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;
}

View File

@ -57,6 +57,8 @@ namespace cw
// Advance the current time by 'ms' milliseconds;
rc_t futureMs( spec_t& ts, unsigned ms );
rc_t test();
//)
}