Squirrel Standard Library Functions: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
|}</big>
|}</big>


For example, if the user wants to get the number of seconds ('''not milliseconds''') elapsed since the start of system, they can use clock() function (see System Library of squirrel manual) which returns the same as a float value.
The squirrel's clock() function which returns number of seconds elapsed since system was started is [[https://sourceforge.net/p/squirrel/bugs/7/ bugged]] on linux systems. You can use [[GetTickCount]] instead.

Latest revision as of 04:24, 5 December 2022

In the npcscripts, the following standard [libraries] of Squirrel are included.

  • Input Output Library
  • System Library
  • Math Library
  • String Library
  • Blob Library

The squirrel's clock() function which returns number of seconds elapsed since system was started is [bugged] on linux systems. You can use GetTickCount instead.