Pure Programmer
Blue Matrix


Cluster Map

Project: CurrentTimeMilliseconds

Often it is necessary to time how long a section of code takes to execute to get useful information for optimization. Write a program that computes squares between 1 and 10,000 and prints them. Time how long it takes to perform this function to milliseconds resolution.

Output
$ swiftc CurrentTimeMilliseconds.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution