/xbmc/visualizations/XBMCProjectM/libprojectM/timer.h

http://github.com/xbmc/xbmc · C++ Header · 51 lines · 11 code · 4 blank · 36 comment · 0 complexity · 2edfd5a4b81481ab49895aba14eed631 MD5 · raw file

  1. /**
  2. * projectM -- Milkdrop-esque visualisation SDK
  3. * Copyright (C)2003-2007 projectM Team
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2.1 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. * See 'LICENSE.txt' included within this release
  19. *
  20. */
  21. /**
  22. * $Id: timer.h,v 1.1.1.1 2005/12/23 18:05:00 psperl Exp $
  23. *
  24. * Platform-independent timer
  25. *
  26. * $Log: timer.h,v $
  27. * Revision 1.1.1.1 2005/12/23 18:05:00 psperl
  28. * Imported
  29. *
  30. * Revision 1.2 2004/10/05 09:19:40 cvs
  31. * Fixed header include defines
  32. *
  33. * Revision 1.1.1.1 2004/10/04 12:56:00 cvs
  34. * Imported
  35. *
  36. */
  37. #ifndef _TIMER_H
  38. #define _TIMER_H
  39. #ifndef WIN32
  40. #include <sys/time.h>
  41. unsigned int getTicks( struct timeval *start );
  42. struct timeval GetCurrentTime();
  43. #else
  44. #include <windows.h>
  45. unsigned int getTicks( long start );
  46. #endif /** !WIN32 */
  47. #endif /** _TIMER_H */