Crystal Space
Welcome, Guest. Please login or register.
July 29, 2014, 08:31:58 pm

Login with username, password and session length
Search:     Advanced search
9005 Posts in 2043 Topics by 8254 Members
Latest Member: Natashascott
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  a stupid question about GetElapsedTicks
« previous next »
Pages: [1] Print
Author Topic: a stupid question about GetElapsedTicks  (Read 1629 times)
LordGordon
Newbie
*
Posts: 19


View Profile WWW
« on: February 14, 2006, 06:05:15 pm »

From the simple1 tutorial (docs/html/manual/cs_4.3.1.5.html#4.3.1.5):
Quote
void Simple::ProcessFrame ()
{
      ...
      // First get elapsed time from the virtual clock.
      csTicks elapsed_time = vc->GetElapsedTicks ();
      ...

How is calculated the value returned by GetElapsedTicks?
Is it the time passed since the last frame?

Many Thanks!
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: February 14, 2006, 07:32:10 pm »

From the simple1 tutorial (docs/html/manual/cs_4.3.1.5.html#4.3.1.5):
Quote
void Simple::ProcessFrame ()
{
      ...
      // First get elapsed time from the virtual clock.
      csTicks elapsed_time = vc->GetElapsedTicks ();
      ...

How is calculated the value returned by GetElapsedTicks?
Is it the time passed since the last frame?

Many Thanks!


Yes, milliseconds since last frame.

Greetings,
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 3.167 seconds with 15 queries.