]> git.phdru.name Git - m_lib.git/blob - m_lib/pbar/test/test2.py
80dea235bc6eb89fffebfebec43b48a659f36466
[m_lib.git] / m_lib / pbar / test / test2.py
1 #! /usr/bin/env python
2 """
3    Test N2 to time file reading
4 """
5
6 import sys
7 from clock import clock
8
9
10 def test():
11    print "Test: ",
12    sys.stdout.flush()
13
14    infile = open(sys.argv[1])
15    lines = []
16    line = '\n'
17    while line:
18       line = infile.readline()
19       lines.append(line)
20    infile.close()
21
22    print "Ok"
23
24
25 if __name__ == "__main__":
26    test()
27    print "Overall time:", clock()