Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:22

0001 // name=stime_test ; gcc $name.cc -I.. -std=c++11 -lstdc++ -o /tmp/$name && /tmp/$name
0002 
0003 #include <iostream>
0004 #include <iomanip>
0005 #include "stime.h"
0006 
0007 void test_Time()
0008 {
0009     stime::Time stamp ; 
0010     stime::init(&stamp);  
0011 
0012     std::cout << stime::Desc(&stamp) << std::endl ;  
0013 }
0014 
0015 void test_Format()
0016 {
0017     std::cout << "stime::Stamp "  << stime::Stamp() << std::endl ; 
0018     std::cout << "stime::Now    " << stime::Now() << std::endl ; 
0019     std::cout << "stime::Format " << stime::Format() << std::endl ; 
0020 
0021 }
0022 
0023 
0024 int main(int argc, char** argv)
0025 {
0026 
0027     test_Format(); 
0028     return 0 ; 
0029 }