Elapsed Time calculator long way

input code elapsed time calculate via paste it to program.cs file and
compile it via batch file on csc and run program.exe wich write
outputfile and main program takes the seconds from that outpufile