MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / logTxtOutput

Function logTxtOutput

src/scripts/perf/performanceUtility.py:89–92  ·  view source on GitHub ↗
(fileName, mode, txt)

Source from the content-addressed store, hash-verified

87
88
89def logTxtOutput(fileName, mode, txt):
90 todayFile = fileName+'-'+datetime.now().strftime('%Y-%b-%d')+'.txt'
91 with open(todayFile, mode) as f:
92 f.write('------\n'+txt+'\n')
93
94def log(filename, txt):
95 with open(filename, 'a') as f:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected