This function returns the current system time, in milliseconds.
Returns the current system time, in milliseconds.
#include "UltraEngine.h"
using namespace UltraEngine;
int main(int argc, const char* argv[])
{
//Get the initial system time
auto starttime = Millisecs();
//Pause for one second
Sleep(1000);
//Show the current time relative to the starting time
auto currenttime = Millisecs() - starttime;
Print(currenttime);
//Pause for one second
Sleep(1000);
//Show the current time relative to the starting time
currenttime = Millisecs() - starttime;
Print(currenttime);
return 0;
}