31
ghia
Re: Milliseconds in flashgames
  • 2009/1/27 2:03

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
$miliseconds = ($score intval($score)) * 100;
if (
$miliseconds 10$miliseconds "0".$miliseconds;

I would expect that there are 1000 milliseconds in a second.
And the fraction has to be multiplied with 1000 as in
$miliseconds = ($score intval($score)) * 1000;
if (
$miliseconds 10
{
  
$miliseconds "00".$miliseconds;

elseif (
$miliseconds 100
{
  
$miliseconds "0".$miliseconds;
}


32
Anonymous
Re: Milliseconds in flashgames
  • 2009/1/27 19:27

  • Anonymous

  • Posts: 0

  • Since:


trabis .. 100 or 1000 ?

33
trabis
Re: Milliseconds in flashgames
  • 2009/1/27 19:29

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Mili is 1000 and ghia is correct but the module does not save miliseconds. I donĀ“t know how to call it in english. Is a cent of a second.

34
Anonymous
Re: Milliseconds in flashgames
  • 2009/1/27 19:44

  • Anonymous

  • Posts: 0

  • Since:


centisecond ( cent of a second ) = 10 milliseconds

I think it is decisecond

--------------------------------
1 second = 100 centiseconds
1 second = 1000 milliseconds
1 decisecond = 10 centiseconds
1 centisecond = 10 milliseconds
1 millisecond = 1000 microseconds
1 microsecond = 1000 nanoseconds
1 nanosecond = 1000 picoseconds
1 picosecond = 1/1,000,000,000,000 of a second
1 femtosecond = 1/1,000,000,000,000,000 of a second
--------------------------------


35
trabis
Re: Milliseconds in flashgames
  • 2009/1/27 19:58

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Ok, now change thread name to "Centiseconds in flashgames"!

Login

Who's Online

243 user(s) are online (155 user(s) are browsing Support Forums)


Members: 0


Guests: 243


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits