Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8176323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:07:37+00:00 2026-06-06T23:07:37+00:00

I want to create a timer to run on an embedded system with as

  • 0

I want to create a timer to run on an embedded system with as little impact as possible. I can choose to implement the timer in C, C++, bash or python. The error in the timer can be +/- a few seconds.

I’m tempted just to create a loop in a bash script using the ‘sleep()’ command and the ‘&’ to start it in the background. However I’m worried/don’t quite understand if this will be keeping the system active/awake if implemented this way.

If it is keeping the system active/awake, is it possible to create a timer that doesn’t do that using C, C++, python or maybe another way with a bash script?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:07:38+00:00Added an answer on June 6, 2026 at 11:07 pm

    If you are worried about system resource or power consumption issue in an embedded system, you should definitely use RTC to implement timer.

    Please refer to http://linux.die.net/man/4/rtc

    And, check the user manual of the operating system you are using. Maybe there are some functions existing to call.

    It is not necessary to reinvent the timer related functions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to run my client program 25,000 times. I need to create a
I want to create a class that initializes a timer which will be used
I want to create an incrementing second timer like a stopwatch. So I want
I want some code to be triggered every second. Usually, I'd create a Timer
I want get the time used for a case so I can create an
I want to create a timer for my app. The sample code is shown
I'm trying to create a run time css-based swf which DOES NOT have embedded
I am wondering if there is some way that I can create a timer
I want to create an AlertDialog with a timer in it. Basically I want
I need to create an interval Timer that is set to run once a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.