Jump to content


Photo

Time Library - Use Precise System Timer In Gm!


  • Please log in to reply
2 replies to this topic

#1 Black Doomer

Black Doomer

    GMC Member

  • GMC Member
  • 105 posts
  • Version:GM8.1

Posted 16 September 2013 - 06:52 AM

Time Library

 

This extension provides powerful API for working with system timer (aka millisecond counter).

With it you can, for example, parallelize general GM program flow to different flows with fixed count of cycles. It can be useful in online games to send more data packets per second than game speed, I think.

Features:

  • ability to get current value of system timer;
  • ability to using timers by setting delay value and checking it's passing;
  • ability to using timings by setting number of cycles-per-second and checking for time of next cycle.

Manual and example of using extension by parallelize general GM flow are included in the archive.

Thanks to PrimuS for help with writing an example.

 

Download (83.02 KB, .ZIP)

 

Hope that it will be useful for someone.


Edited by Black Doomer, 05 October 2013 - 03:32 AM.

  • 0

And sorry for my bad English.

My projects: Doom 2D Multiplayer

My extensions: Codepage Converter | XP Messages | Bit Wizard | Time Library

Other: Download Manager 2 GEX


#2 Black Doomer

Black Doomer

    GMC Member

  • GMC Member
  • 105 posts
  • Version:GM8.1

Posted 05 October 2013 - 03:33 AM

Uploaded a new version. Extension size was slightly reduced.


  • 0

And sorry for my bad English.

My projects: Doom 2D Multiplayer

My extensions: Codepage Converter | XP Messages | Bit Wizard | Time Library

Other: Download Manager 2 GEX


#3 Black Doomer

Black Doomer

    GMC Member

  • GMC Member
  • 105 posts
  • Version:GM8.1

Posted 13 December 2013 - 05:18 AM

ToDo list for the next version:

  • add support of high resolution timer;
  • add ability to choose timer type: high resolution, 64-bit timer, simple timer;
  • optimize deleting timers / timings;
  • add ability to get timer value as integer number.

  • 0

And sorry for my bad English.

My projects: Doom 2D Multiplayer

My extensions: Codepage Converter | XP Messages | Bit Wizard | Time Library

Other: Download Manager 2 GEX