Computer Science and Information Technology (CS & IT)

Current virtual simulation time in C++

Viewing 0 reply threads
  • Author
    Posts
    • #1917
      Karol Sousa
      Member

      In order to obtain the current virtual simulation time in C++, we can
      resort to the following statements
      Scheduler& s = Scheduler::instance();
      cout << “The current time is ” << s.clock() << endl;
      Here the upper line retrieves the reference to the Scheduler, while the lower
      line invokes the function clock() of the current simulation time.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.
©Postnetwork-All rights reserved.