About 8,700 results
Open links in new tab
  1. Getting current time with milliseconds - Code Review Stack …

    I am looking for a more efficient or shorter way to achieve the following output using the following code: timeval curTime; gettimeofday(&curTime, NULL); int milli = curTime.tv_usec / 1000; …

  2. Millisecond timer using plain standard C++98 - Code Review …

    For development I'm using timer classes that are based on Win32 functions like QueryPerformanceCounter() or the time stamp counter of Intel-compatible CPUs. However, for …

  3. Avoiding race in a sub-millisecond TOD timer

    Dec 6, 2020 · Part of the project I am working on is to maintain the time-of-day, at the sub-millisecond accuracy, while not overwhelming CPU. The controller has a pretty standard timer, …

  4. Timer thread implementation - Code Review Stack Exchange

    Aug 1, 2022 · 4 I've implemented a timer thread whose job is to call functions at a certain interval. The functions may be called multiple times if their interval > 0 millisec otherwise only one time. …

  5. Timestamp function with millisecond precision - Code Review …

    Feb 20, 2016 · Timestamp function with millisecond precision Ask Question Asked 9 years, 10 months ago Modified 6 years, 11 months ago

  6. swing - Timer in Java with GUI - Code Review Stack Exchange

    Mar 11, 2020 · Timer in Java with GUI Ask Question Asked 5 years, 9 months ago Modified 5 years, 9 months ago

  7. DateTimePrecise - current DateTime with millisecond precision

    Answer in this question contains DateTimePrecise class that should return current date with millisecond precision. But class is pretty bug and complicated. So I wrote my own version …

  8. c++ - Simple Multithread Timer - Code Review Stack Exchange

    Jun 24, 2016 · The timer has the classic functions: start() and stop(). The start() method creates an independent thread (if multithread support is enabled), then sleep the thread for a given …

  9. Using a for-loop or sleeping to wait for short intervals of time

    Feb 22, 2014 · If you need delays longer than 50 thousand of CPU cycles, create a waitable high-resolution timer and wait for it. For windows, there is a function CreateWaitableTimer.

  10. c++ - A cross platform function to get current time in seconds …

    Sep 24, 2018 · Very few computing devices can achieve an absolute time accuracy of a few microseconds. Such precision might be useful within a single device, but this is supposed to …