/////////////////////////////////////////////////////////////////////////// Create a new timer @return true if a time has been created, otherwise false @param name of the new timer, 0 if the creation failed ///////////////////////////////////////////////////////////////////////////
| 367 | //! @param name of the new timer, 0 if the creation failed |
| 368 | //////////////////////////////////////////////////////////////////////////////// |
| 369 | inline bool sdkCreateTimer(StopWatchInterface **timer_interface) { |
| 370 | // printf("sdkCreateTimer called object %08x\n", (void *)*timer_interface); |
| 371 | #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) |
| 372 | *timer_interface = reinterpret_cast<StopWatchInterface *>(new StopWatchWin()); |
| 373 | #else |
| 374 | *timer_interface = |
| 375 | reinterpret_cast<StopWatchInterface *>(new StopWatchLinux()); |
| 376 | #endif |
| 377 | return (*timer_interface != NULL) ? true : false; |
| 378 | } |
| 379 | |
| 380 | //////////////////////////////////////////////////////////////////////////////// |
| 381 | //! Delete a timer |
no outgoing calls