Lua
C++
Edit

Millisecs

This function returns the current system time, in milliseconds.

Syntax

Returns

Returns the current system time, in milliseconds.

Example

#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;
}
Copyright © 2024 Ultra Software.
All rights reserved.