Sign in to follow this  
Followers 0
AlmarM

_TimeToTicks explanation

6 posts in this topic

#1 ·  Posted (edited)

Hi,

Whats _TimeToTicks exactly?

I just cant figure out. :)

AlmarM

EDIT: Oh and _TicksToTime :o

Edited by AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites



Ehm, so what does it do >.<?

AlmarM


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

As best as I can tell it converts between milliseconds, and hours: minutes: seconds.

Which may be useful if you know how many hours and minutes you want to delay, but the sleep() command only takes milliseconds as a parameter

Share this post


Link to post
Share on other sites

Converts the specified hours, minutes, and seconds to ms.

#include <Date.au3>

$iHours = 00
$iMins = 00
$iSecs = 01

$StartTicks = _TimeToTicks($iHours,$iMins,$iSecs)
ConsoleWrite($iHours&":"&$iMins&":"&$iSecs&@cr)
ConsoleWrite($StartTicks &@cr)

Share this post


Link to post
Share on other sites

So _TimeToTicks converts for example @HOUR:$MIN:$SEC into MS

And _TicksToTime converts MS into $HOUR:$MIN:$SEC ?

AlmarM


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0