Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

What are the differences between simulation and real time? Can simulation time run faster than real time? Can simulation time run slower than real time?

Trying to get a grasp of this concept, all help is much appreciated.

share|improve this question

closed as unclear what you're asking by Bruce McLeod Dec 10 '13 at 5:40

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 0 down vote accepted

Please note, I read this as kind of ambiguous, but, will attempt to answer as best as I can.

Real time is typically considered to be at the time that the code is running or as the action is happening. This can also mean that an action only occurs at a set time, and I need to be present to observe the action at that time.

Simulated time, is, as it means, only simulated. For example, I could write a method that counts every minute, but then, but in a test method that increments the time of the application by a minute every n seconds. This can also mean a time that I set arbitrarily. This could mean changing my system clock or that of my server to observe an action that only occurs at a certain time in almost real circumstances whenever I want, or, that I can arbitrarily change the time set in the code to see if I can observe a certain behavior.

share|improve this answer
    
Lyndon, why is simulation time non-decreasing? Are there any consequences if a simulation time decreases during the execution? –  user3084035 Dec 10 '13 at 5:30
    
Of course there can be consequences due to this, or any other manipulation. It's also not necessarily non-decreasing, it's what you determine that you need at that time. Using a simulated time, increasing, or decreasing it brings with it it's won risks, which you need to evaluate, plan mitigation for, and accept or not. –  Lyndon Vrooman Dec 10 '13 at 12:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.