Important Update:

- BufferCore:
  - Added PeekCopy and PopCopy methods
- SelectableCore:
  - Add status checking of Handle on Read and Write
  - Reject input if Handle not open
- TimingCore:
  - Added method ClearStartTime
This commit is contained in:
Charl Wentzel
2016-07-06 15:17:10 +02:00
parent 1ced40260d
commit 6fee4d0eac
5 changed files with 93 additions and 4 deletions

View File

@@ -33,6 +33,15 @@ void SetStartTime( timeval * StartTime )
}
//---------------------------------------------------------------------------
// Clear start time
void ClearStartTime( timeval * StartTime )
{
// Get current time
StartTime->tv_sec = 0;
StartTime->tv_usec = 0;
}
//---------------------------------------------------------------------------
// Calculate TimePassed from Start Time (in milli-seconds)
long TimePassed( timeval StartTime )
{