![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/emscripten/tests/poppler/goo/ |
Upload File : |
//======================================================================== // // GooTimer.cc // // This file is licensed under GPLv2 or later // // Copyright 2005 Jonathan Blandford <jrb@redhat.com> // Copyright 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com> // Copyright 2010 Hib Eris <hib@hiberis.nl> // Inspired by gtimer.c in glib, which is Copyright 2000 by the GLib Team // //======================================================================== #ifndef GOOTIMER_H #define GOOTIMER_H #ifdef USE_GCC_PRAGMAS #pragma interface #endif #include "gtypes.h" #ifdef HAVE_GETTIMEOFDAY #include <sys/time.h> #endif #ifdef _WIN32 #include <windows.h> #endif //------------------------------------------------------------------------ // GooTimer //------------------------------------------------------------------------ class GooTimer { public: // Create a new timer. GooTimer(); void start(); void stop(); double getElapsed(); private: #ifdef HAVE_GETTIMEOFDAY struct timeval start_time; struct timeval end_time; #elif defined(_WIN32) LARGE_INTEGER start_time; LARGE_INTEGER end_time; #endif GBool active; }; #endif