# GetTime

System
4.9.1.0 GWE
int
Returns the time passed since operating system start. Can be used for exact time measurement.
As operating system times will vary on different computers, this function will always return 0 in a network game or playback to avoid synchronization errors.
func TestCos() { if(IsNetwork()) return(Log("TestCos funktioniert im Netzwerk nicht!")); var start_time = GetTime(); for(var i = 0; i < 100; i++) var x = Cos(i, 100); var time = GetTime() - start_time; Log("Ein Cos-Aufruf benötigt: %d.%02d ms", time / 100, time % 100); }
This function checks the performance of the function "Cos". To do this, it executes the function 100 times and calculates the processinf time using GetTime().
GetSystemTime
Peter
2002-08