Thread: Timer function library for Linux and Windows

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    15

    Timer function library for Linux and Windows

    If you intend to write a GPL-licensed, opensource and multiplatform program in C or C++ and you want to use a timer, look here:

    Timer function code for Linux and Windows

    With this library, you can use GCC on Linux and MinGW on windows to use a timer without the need to make any changes in your sourcecode.

    Regards.

  2. #2
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    Or you could just use the built-in functions?

    Either way, why is this under the Linux dev board?

  3. #3
    Registered User
    Join Date
    Sep 2009
    Posts
    15
    Quote Originally Posted by memcpy View Post
    Or you could just use the built-in functions?
    It uses the built-in functions. It calls the respective Linux or windows api depending to the platform in use.
    The reason I posted this, is that there are always new novice-programmers which are struggling with this and
    are trying to invent the wheel again.

    Quote Originally Posted by memcpy View Post
    Either way, why is this under the Linux dev board?
    My misstake, I posted it in the wrong board. Is there a way to move this thread?

  4. #4
    Registered User
    Join Date
    Sep 2007
    Posts
    131
    I tend to avoid GPL due to viral licensing issues.

  5. #5
    Registered User
    Join Date
    Sep 2009
    Posts
    15
    Quote Originally Posted by Cynic View Post
    I tend to avoid GPL due to viral licensing issues.
    I avoid those issues by applying the GPL-licence to all my software.

  6. #6
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Porting an input function from linux to windows
    By claphahat in forum C Programming
    Replies: 2
    Last Post: 07-27-2010, 04:55 AM
  2. RS232 serial port library for Linux and Windows
    By Theodoor in forum Networking/Device Communication
    Replies: 8
    Last Post: 09-26-2009, 06:45 AM
  3. Porting a shared library from Linux to Windows
    By DARKGuy in forum C++ Programming
    Replies: 1
    Last Post: 06-23-2007, 01:45 PM
  4. Replies: 1
    Last Post: 05-05-2006, 11:46 PM
  5. GUI library that works on windows and linux?
    By Logan in forum C++ Programming
    Replies: 2
    Last Post: 04-28-2006, 08:40 PM