OLD | NEW |
1 /* | 1 /* |
2 ** 2010-07-22 | 2 ** 2010-07-22 |
3 ** | 3 ** |
4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
6 ** | 6 ** |
7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
10 ** | 10 ** |
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 | 873 |
874 /* | 874 /* |
875 ** Used by setstoptime() and timetostop(). | 875 ** Used by setstoptime() and timetostop(). |
876 */ | 876 */ |
877 static double timelimit = 0.0; | 877 static double timelimit = 0.0; |
878 | 878 |
879 static double currentTime(void){ | 879 static double currentTime(void){ |
880 double t; | 880 double t; |
881 static sqlite3_vfs *pTimelimitVfs = 0; | 881 static sqlite3_vfs *pTimelimitVfs = 0; |
882 if( pTimelimitVfs==0 ) pTimelimitVfs = sqlite3_vfs_find(0); | 882 if( pTimelimitVfs==0 ) pTimelimitVfs = sqlite3_vfs_find(0); |
883 if( pTimelimitVfs->iVersion>=1 && pTimelimitVfs->xCurrentTimeInt64!=0 ){ | 883 if( pTimelimitVfs->iVersion>=2 && pTimelimitVfs->xCurrentTimeInt64!=0 ){ |
884 sqlite3_int64 tm; | 884 sqlite3_int64 tm; |
885 pTimelimitVfs->xCurrentTimeInt64(pTimelimitVfs, &tm); | 885 pTimelimitVfs->xCurrentTimeInt64(pTimelimitVfs, &tm); |
886 t = tm/86400000.0; | 886 t = tm/86400000.0; |
887 }else{ | 887 }else{ |
888 pTimelimitVfs->xCurrentTime(pTimelimitVfs, &t); | 888 pTimelimitVfs->xCurrentTime(pTimelimitVfs, &t); |
889 } | 889 } |
890 return t; | 890 return t; |
891 } | 891 } |
892 | 892 |
893 static void setstoptime_x( | 893 static void setstoptime_x( |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1514 | 1514 |
1515 usage: | 1515 usage: |
1516 printf("Usage: %s [-multiplexor] [testname|testprefix*]...\n", argv[0]); | 1516 printf("Usage: %s [-multiplexor] [testname|testprefix*]...\n", argv[0]); |
1517 printf("Available tests are:\n"); | 1517 printf("Available tests are:\n"); |
1518 for(i=0; i<sizeof(aTest)/sizeof(aTest[0]); i++){ | 1518 for(i=0; i<sizeof(aTest)/sizeof(aTest[0]); i++){ |
1519 printf(" %s\n", aTest[i].zTest); | 1519 printf(" %s\n", aTest[i].zTest); |
1520 } | 1520 } |
1521 | 1521 |
1522 return 254; | 1522 return 254; |
1523 } | 1523 } |
OLD | NEW |