-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
44 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
#include "PreciseTimer.hpp" | ||
#include "PreciseTimerC.h" | ||
extern "C" { | ||
CPT* startTimer( void ) { | ||
EXPORT CPT* startTimer( void ) { | ||
return reinterpret_cast<CPT*>(new PreciseTimer); | ||
} | ||
|
||
double getDuration( CPT *pt ) { | ||
EXPORT double getDuration( CPT *pt ) { | ||
return reinterpret_cast<PreciseTimer*>(pt)->getElapsedTime( ); | ||
} | ||
|
||
unsigned int version( void ) { | ||
EXPORT unsigned int version( void ) { | ||
return PreciseTimer::version; | ||
} | ||
|
||
void freeTimer( CPT *pt ) { | ||
EXPORT void freeTimer( CPT *pt ) { | ||
delete reinterpret_cast<PreciseTimer*>(pt); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters