TheAutopilot (talk | contribs) Created page with "{{#Invoke:ProtoFlux|GenerateUI |Name=Utc Now |Category=Time |Outputs= [ {"Name": "*", "Type":"DateTime"} ] |}} Returns the current time in UTC[https://en.wikipedia.org/wiki/Coordinated_Universal_Time]. Each evaluation triggers an individual call to DateTime.UtcNow[https://learn.microsoft.com/en-us/dotnet/api/system.datetime.utcnow]. This means that within a single Impulse it can be evaluated with different values. This can be used to measure the runtime o..." |
TheAutopilot (talk | contribs) m TheAutopilot moved page ProtoFlux:Utc Now to ProtoFlux:UTC Now: Misspelled title: UTC is an abbreviation and should be upper case. |
(No difference)
|
Revision as of 22:16, 22 March 2024
Utc Now
Time
Returns the current time in UTC[1].
Each evaluation triggers an individual call to DateTime.UtcNow[2]. This means that within a single Impulse it can be evaluated with different values.
This can be used to measure the runtime of impulse based ProtoFlux to sub-millisecond precision.
Since UTC is independent of the local user's timezone it should return approximately the same value on every user.
Outputs
* (DateTime)
The current time in UTC
Examples
-
An example code that also demonstrates how to measure runtime of a ProtoFlux loop.