Git Product home page Git Product logo

zcsleep's Introduction

zcsleep

zcsleep is a program that, like sleep(1), takes a duration on the command line, then quietly waits for that amount of time before exiting. It is unlike sleep(1) in that:

  • One can specify a particular system clock to use for sleeping: CLOCK_REALTIME, CLOCK_MONOTONIC, etc. This can be useful in the face of clock adjustments, system suspends, and the like.

  • It is not as polished as sleep(1): as it stands (August 2020), the basic functionality works, and it should be robust against bad inputs, but the user interface (especially the error reporting) isn’t as friendly as it could be. (The code could use better documentation, too.)

As it stands, it’s good enough for my (Zachary Catlin) purposes, but may not be ready for general usage. If someone wants to run with this idea and turn it into a better utility, or just finds it useful as-is, go for it, but this is not supported by me.

It has been tested only on Linux, but should compile and run on recent POSIX-compliant systems with few or no changes.

zcsleep's People

Contributors

zec avatar

Stargazers

Andrew Johnson avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.