aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeapi.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2005-11-30 03:20:31 +0000
committerdrh <drh@noemail.net>2005-11-30 03:20:31 +0000
commit054889ec6d2df4754468d2acfe6c92973f54ea2c (patch)
tree0dd1f8d5015e064fd666cb6253ad10c202ba4e34 /src/vdbeapi.c
parent392b3ddf2ebe613d701ff3f912ac04b294ce0070 (diff)
downloadsqlite-054889ec6d2df4754468d2acfe6c92973f54ea2c.tar.gz
sqlite-054889ec6d2df4754468d2acfe6c92973f54ea2c.zip
Restructure the OS interface yet again. This time make the OsFile object
a virtual base class which is subclassed for unix, windows, and the crash test simulator. Add the new file "os.c" for common os layer code. Move all OS-specific routines into the sqlite3Os structure. (CVS 2795) FossilOrigin-Name: bd8740d1aecba69e1b5d64d43db07e8ad8841f07
Diffstat (limited to 'src/vdbeapi.c')
-rw-r--r--src/vdbeapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vdbeapi.c b/src/vdbeapi.c
index 2fd54f38e..4a5dc985f 100644
--- a/src/vdbeapi.c
+++ b/src/vdbeapi.c
@@ -191,7 +191,7 @@ int sqlite3_step(sqlite3_stmt *pStmt){
}
if( db->xProfile && !db->init.busy ){
double rNow;
- sqlite3OsCurrentTime(&rNow);
+ sqlite3Os.xCurrentTime(&rNow);
p->startTime = (rNow - (int)rNow)*3600.0*24.0*1000000000.0;
}
#endif
@@ -228,7 +228,7 @@ int sqlite3_step(sqlite3_stmt *pStmt){
double rNow;
u64 elapseTime;
- sqlite3OsCurrentTime(&rNow);
+ sqlite3Os.xCurrentTime(&rNow);
elapseTime = (rNow - (int)rNow)*3600.0*24.0*1000000000.0 - p->startTime;
assert( p->nOp>0 );
assert( p->aOp[p->nOp-1].opcode==OP_Noop );