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 8672589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:14:34+00:00 2026-06-12T19:14:34+00:00

I have different applications written in C# and C++ that communicate between each other.

  • 0

I have different applications written in C# and C++ that communicate between each other. I would like to test this environment with some scenarios that I wrote.

Each scenario runs for different hours.

Is there a way to accelerate everything in order to have the scenarios run in minutes.

The applications may contains some Thread.Sleep(...) or equivalent in C++.

My idea is that a Thread.Sleep(2000) would wait for 2 seconds normally but when accelerated it should only wait for 200 ms.

Unfortunately I cannot change or refactor the code of the applications.

A first idea I have is to run the applications in an “accelerated Windows” system. A sort of wrapper of the OS where time run faster. But I have no idea on how to achieve this.

So any new idea or solution would be great.

Thanx

  • 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-12T19:14:35+00:00Added an answer on June 12, 2026 at 7:14 pm

    I don’t think “making Windows run faster” is practical, but I would consider intercepting the Sleep() method calls and short-circuiting them. I haven’t looked, but Thread.Sleep() will probably thunk down somewhere to a Win32 API or an NT API (http://msdn.microsoft.com/en-us/library/windows/desktop/ms686298(v=vs.85).aspx).

    You can use depends.exe from the Windows SDK and a debugger to see what your code uses, but I suspect (unless you know otherwise) that it won’t simply be a Sleep() call, it’ll more likely be a call waiting on some system object, I/O or a trigger, using WaitForMultipleObjectsEx() and friends.

    Have a look at Detours from Microsoft Research for API interception http://msdn.microsoft.com/en-us/library/windows/desktop/ms686298(v=vs.85).aspx

    There are are also various writings by Jeffry Richter and Matt Pietrek on the subject. In fact here’s a codeproject article inspired by one of those;

    http://www.codeproject.com/Articles/5178/DLL-Injection-and-function-interception-tutorial

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

Sidebar

Related Questions

I would like to have different applications under the same domain using Heroku. Because
I have two different applications and I am using GroupLab Networking to communicate between
I have a few different applications that i need to share code between to
I have two web applications written in Flex I would like to integrate. I
I have written two different applications running as windows services. Each application represents one
Off late I'd been hearing that applications written in different languages can call each
I run foo.com. I have two different applications that live in foo.com: one is
I have an Android project that branched into three different applications, app-1 , app-2
I have multiple applications each having a GUI from a different technology. I need
I've written a simple Application that utilizes WCF to communicate between client and server.

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.