Skip to main content
Ctrl+K
Jörg Faschingbauer - Home Jörg Faschingbauer - Home
  • Training Courses
  • About
  • Blog
  • Training Courses
  • About
  • Blog

Section Navigation

  • Course Descriptions
  • Pricing, Organizational
  • Log Of Past Courses
  • Complete Slide Material
    • Linux: Introduction, Userland/Kernel Programming, Hardware/Embedded
      • Linux Basics
      • Linux Systems Programming
      • SSH: Secure Shell
      • Toolchain, And Cross Development
      • Linux Hardware Interfaces
      • Systems Programming: Why Use An Embedded RTOS?
        • WhyOS: Documentation
          • Why: Interrupt Handling
          • Why: Threads
          • Why: Time
          • Why: Mutex
          • Why: Spinlock
          • Why: Message Queue
          • Why: Timer
          • Why: Pipe
          • Why: Semaphore
          • Why: PollSignal
          • Why: Eventloop (“Polling”)
          • Why: Files
          • Why: Watchdog
          • Errors And Error Handling
          • Shell Doc Here jjj
          • Why: MQTT
        • Overview: Terminology
        • Interrupt Handling, And Its Hardness
        • Threads: Scheduling, Blocking, And Realtime
        • Message Queues: Easy Communication
        • Semaphores: At The Basis Of Waiting
        • Timers, And Timer Callbacks
        • Datalogger: A Semi-Realistic Project (Threaded Version)
        • Polling: Event Driven Programming
        • Datalogger: A Semi-Realistic Project (Events Version)
      • Linux Kernel Driver Development
    • Python Programming
    • C Programming
    • C++ Programming
    • Build Tools, Unit Testing, Design, And More
  • Training Courses
  • Complete Slide Material
  • Linux: Introduction, Userland/Kernel Programming, Hardware/Embedded
  • Systems Programming: Why Use An Embedded RTOS?
  • WhyOS: Documentation
  • Why: Timer

Why: Timer#

Documentation

  • Zephyr: Timers

class Timer#

Public Types

using Callback = std::function<void()>#

Public Functions

Timer(Callback callback)#
~Timer()#
Timer(const Timer&) = delete#
Timer &operator=(const Timer&) = delete#
Timer(Timer &&other) = delete#
Timer &operator=(Timer &&other) = delete#
void start(TimeSpec initial_expiry, TimeSpec period = TimeSpec(0, 0))#
void stop()#
On this page
  • Why::Timer
    • Callback
    • Timer()
    • ~Timer()
    • Timer()
    • operator=()
    • Timer()
    • operator=()
    • start()
    • stop()

© Copyright 2019-2026 (GPLv3), Jörg Faschingbauer.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.17.1.

Show Source