File: sleep.cpp

package info (click to toggle)
vdr-plugin-markad 4.2.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,084 kB
  • sloc: cpp: 22,441; python: 613; makefile: 270; sh: 95
file content (8 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#include "sleep.h"     // forward decl
#include <thread>      // std::this_thread{,::sleep_for()}  
#include <chrono>      // std::chrono::seconds

unsigned sleep(size_t s) {
  std::this_thread::sleep_for(std::chrono::seconds(s));
  return 0;
}