UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

  • Index
  • » C++
  • » add a time delay in a function

#1 2019-04-02 11:54 AM

jamesjoshua
Member
Registered: 2019-04-02
Posts: 1

add a time delay in a function

I am new to c++, and are looking for a way to add delays in a specific function that ONLY delays that specific function, for example: let's say one function Is printing out text for the user to read, but the other is... let's say changing the background color and needs to have it's delays at different times from the text. Sorry if this was a waste of time, but I am new and any help would be much appreciated. Thank You :) Omegle Appvalley https://192168ll.onl/

Last edited by jamesjoshua (2019-04-03 06:15 PM)

Offline

#2 2019-04-02 02:02 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,844
Website

Re: add a time delay in a function

I'm not entirely sure what you want, but do you know about sleep(), usleep(), or nanosleep()?

Offline

  • Index
  • » C++
  • » add a time delay in a function

Board footer

Powered by FluxBB